From 1719796a3a10eccf91eadb38c019829110e96294 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 29 Jun 2018 11:20:51 +0800 Subject: update get_devices --- curl_util.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'curl_util.h') diff --git a/curl_util.h b/curl_util.h index 509bcb9..5e86e5a 100644 --- a/curl_util.h +++ b/curl_util.h @@ -15,18 +15,6 @@ json_add_string(json_object *j, const char *k, const char *v) return json_object_object_add(j, k, json_object_new_string(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) { -- cgit v1.2.3