diff --git a/src/eccodes_prototypes.h b/src/eccodes_prototypes.h index 20efaae32..e74a94f19 100644 --- a/src/eccodes_prototypes.h +++ b/src/eccodes_prototypes.h @@ -1127,7 +1127,6 @@ int grib_set_double(grib_handle* h, const char* name, double val); int grib_set_string_internal(grib_handle* h, const char* name, const char* val, size_t* length); int grib_set_string(grib_handle* h, const char* name, const char* val, size_t* length); int grib_set_string_array(grib_handle* h, const char* name, const char** val, size_t length); -int grib_set_bytes_internal(grib_handle* h, const char* name, const unsigned char* val, size_t* length); int grib_set_bytes(grib_handle* h, const char* name, const unsigned char* val, size_t* length); int grib_set_missing(grib_handle* h, const char* name); int grib_is_missing_long(grib_accessor* a, long x); diff --git a/src/grib_value.cc b/src/grib_value.cc index 9c0365789..c6ec63369 100644 --- a/src/grib_value.cc +++ b/src/grib_value.cc @@ -513,27 +513,23 @@ int grib_set_string_array(grib_handle* h, const char* name, const char** val, si return GRIB_NOT_FOUND; } -int grib_set_bytes_internal(grib_handle* h, const char* name, const unsigned char* val, size_t* length) -{ - int ret = GRIB_SUCCESS; - grib_accessor* a = NULL; - - a = grib_find_accessor(h, name); - - if (a) { - ret = grib_pack_bytes(a, val, length); - if (ret == GRIB_SUCCESS) { - return grib_dependency_notify_change(a); - } - - grib_context_log(h->context, GRIB_LOG_ERROR, "Unable to set %s=%s as bytes (%s)", - name, val, grib_get_error_message(ret)); - return ret; - } - - grib_context_log(h->context, GRIB_LOG_ERROR, "Unable to find accessor %s", name); - return GRIB_NOT_FOUND; -} +// int grib_set_bytes_internal(grib_handle* h, const char* name, const unsigned char* val, size_t* length) +// { +// int ret = GRIB_SUCCESS; +// grib_accessor* a = NULL; +// a = grib_find_accessor(h, name); +// if (a) { +// ret = grib_pack_bytes(a, val, length); +// if (ret == GRIB_SUCCESS) { +// return grib_dependency_notify_change(a); +// } +// grib_context_log(h->context, GRIB_LOG_ERROR, "Unable to set %s=%s as bytes (%s)", +// name, val, grib_get_error_message(ret)); +// return ret; +// } +// grib_context_log(h->context, GRIB_LOG_ERROR, "Unable to find accessor %s", name); +// return GRIB_NOT_FOUND; +// } int grib_set_bytes(grib_handle* h, const char* name, const unsigned char* val, size_t* length) {