Dead code removal

This commit is contained in:
shahramn 2024-08-25 16:33:37 +01:00
parent b3c7271db5
commit 8bf440d850
2 changed files with 15 additions and 15 deletions

View File

@ -402,8 +402,8 @@ void codes_dump_bufr_flat(grib_accessors_list* al, grib_handle* h, FILE* f, cons
size_t grib_context_read(const grib_context* c, void* ptr, size_t size, void* stream); size_t grib_context_read(const grib_context* c, void* ptr, size_t size, void* stream);
off_t grib_context_tell(const grib_context* c, void* stream); off_t grib_context_tell(const grib_context* c, void* stream);
int grib_context_seek(const grib_context* c, off_t offset, int whence, void* stream); int grib_context_seek(const grib_context* c, off_t offset, int whence, void* stream);
int grib_context_eof(const grib_context* c, void* stream); // int grib_context_eof(const grib_context* c, void* stream);
size_t grib_context_write(const grib_context* c, const void* ptr, size_t size, void* stream); // size_t grib_context_write(const grib_context* c, const void* ptr, size_t size, void* stream);
void grib_context_set_print_proc(grib_context* c, grib_print_proc p); void grib_context_set_print_proc(grib_context* c, grib_print_proc p);
void grib_context_set_debug(grib_context* c, int mode); void grib_context_set_debug(grib_context* c, int mode);
void grib_context_set_logging_proc(grib_context* c, grib_log_proc p); void grib_context_set_logging_proc(grib_context* c, grib_log_proc p);

View File

@ -185,19 +185,19 @@ int grib_context_seek(const grib_context* c, off_t offset, int whence, void* str
return c->seek(c, offset, whence, stream); return c->seek(c, offset, whence, stream);
} }
int grib_context_eof(const grib_context* c, void* stream) // int grib_context_eof(const grib_context* c, void* stream)
{ // {
if (!c) // if (!c)
c = grib_context_get_default(); // c = grib_context_get_default();
return c->eof(c, stream); // return c->eof(c, stream);
} // }
size_t grib_context_write(const grib_context* c, const void* ptr, size_t size, void* stream) // size_t grib_context_write(const grib_context* c, const void* ptr, size_t size, void* stream)
{ // {
if (!c) // if (!c)
c = grib_context_get_default(); // c = grib_context_get_default();
return c->write(c, ptr, size, stream); // return c->write(c, ptr, size, stream);
} // }
static void default_log(const grib_context* c, int level, const char* mess) static void default_log(const grib_context* c, int level, const char* mess)
{ {
@ -237,7 +237,7 @@ static void default_print(const grib_context* c, void* descriptor, const char* m
void grib_context_set_print_proc(grib_context* c, grib_print_proc p) void grib_context_set_print_proc(grib_context* c, grib_print_proc p)
{ {
c = c ? c : grib_context_get_default(); c = c ? c : grib_context_get_default();
/* Set logging back to the default if p is NULL */ /* Set printing back to the default if p is NULL */
c->print = (p ? p : &default_print); c->print = (p ? p : &default_print);
} }