ECC-203: Remove the function grib_context_new

This commit is contained in:
Shahram Najm 2015-12-31 13:23:48 +00:00
parent 45badf3729
commit 2c08430d3f
5 changed files with 2 additions and 23 deletions

View File

@ -510,10 +510,6 @@ int codes_points_get_values(grib_handle* h, grib_points* points, double* val)
{
return grib_points_get_values(h,points,val);
}
grib_context* codes_context_new(grib_context* c)
{
return grib_context_new(c);
}
void codes_context_delete(grib_context* c)
{
grib_context_delete(c);

View File

@ -877,14 +877,6 @@ void codes_dump_action_tree(codes_context* c, FILE* f) ;
*/
codes_context* codes_context_get_default(void);
/**
* Create and allocate a new context from a parent context.
*
* @param c : the context to be cloned, NULL for default context
* @return the new and empty context, NULL if error
*/
codes_context* codes_context_new(codes_context* c);
/**
* Frees the cached definition files of the context
*

View File

@ -1057,14 +1057,6 @@ typedef int (*grib_data_eof_proc) (const grib_context* c, void *stream);
*/
grib_context* grib_context_get_default(void);
/**
* Create and allocate a new context from a parent context.
*
* @param c : the context to be cloned, NULL for default context
* @return the new and empty context, NULL if error
*/
grib_context* grib_context_new (grib_context* c);
/**
* Frees the cached definition files of the context
*

View File

@ -914,7 +914,6 @@ void grib_context_set_logging_proc(grib_context *c, grib_log_proc p);
long grib_get_api_version(void);
void grib_print_api_version(FILE *out);
grib_context *grib_context_get_default(void);
grib_context *grib_context_new(grib_context *parent);
char *grib_context_full_defs_path(grib_context *c, const char *basename);
char *grib_samples_path(const grib_context *c);
void grib_context_free(const grib_context *c, void *p);

View File

@ -471,8 +471,7 @@ grib_context* grib_context_get_default()
return &default_grib_context;
}
/* TODO: use parent */
#if 0 /* function removed */
grib_context* grib_context_new(grib_context* parent)
{
grib_context* c;
@ -517,6 +516,7 @@ grib_context* grib_context_new(grib_context* parent)
GRIB_MUTEX_UNLOCK(&(parent->mutex));
return c;
}
#endif /* function removed */
/* GRIB-235: Resolve path to expand symbolic links etc */
static char* resolve_path(grib_context* c, char* path)