diff options
Diffstat (limited to 'curl_util.h')
-rw-r--r-- | curl_util.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/curl_util.h b/curl_util.h index 509bcb9..5e86e5a 100644 --- a/curl_util.h +++ b/curl_util.h @@ -16,18 +16,6 @@ json_add_string(json_object *j, const char *k, const char *v) } static inline -const char *json_gets(json_object *j, const char *key) -{ - json_object *val; - - if (json_object_object_get_ex(j, key, &val)) { - if (json_object_is_type(val, json_type_string)) - return json_object_get_string(val); - } - return NULL; -} - -static inline char* copy_str(const char *s) { size_t l = strlen(s)+1; |