summaryrefslogtreecommitdiff
path: root/curl_util.h
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-06-29 11:20:51 +0800
committerIru Cai <mytbk920423@gmail.com>2018-06-29 11:20:51 +0800
commit1719796a3a10eccf91eadb38c019829110e96294 (patch)
tree47ff1e6401fd5202aad0eccacb94bb19550f294f /curl_util.h
parentb065c82627d83d1b207985d78276eb80f0b7b266 (diff)
downloadmatrix-curl-1719796a3a10eccf91eadb38c019829110e96294.tar.xz
update get_devices
Diffstat (limited to 'curl_util.h')
-rw-r--r--curl_util.h12
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;