From a4346b56f65d7b83f7a1bc83c1debafaf686d75a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 31 Aug 2016 17:19:40 +0930 Subject: [PATCH] json: remove unused json_get_arr parameter. Signed-off-by: Rusty Russell --- daemon/json.c | 5 ++--- daemon/json.h | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/daemon/json.c b/daemon/json.c index f77f742d4..10202c499 100644 --- a/daemon/json.c +++ b/daemon/json.c @@ -157,8 +157,7 @@ const jsmntok_t *json_get_member(const char *buffer, const jsmntok_t tok[], return NULL; } -const jsmntok_t *json_get_arr(const char *buffer, const jsmntok_t tok[], - size_t index) +const jsmntok_t *json_get_arr(const jsmntok_t tok[], size_t index) { const jsmntok_t *t, *end; @@ -195,7 +194,7 @@ const jsmntok_t *json_delve(const char *buffer, case '[': if (tok->type != JSMN_ARRAY) return tal_free(key); - tok = json_get_arr(buffer, tok, atol(key)); + tok = json_get_arr(tok, atol(key)); if (!tok) return tal_free(key); /* Must be terminated */ diff --git a/daemon/json.h b/daemon/json.h index 84b60d308..3f1c50f11 100644 --- a/daemon/json.h +++ b/daemon/json.h @@ -56,8 +56,7 @@ const jsmntok_t *json_get_member(const char *buffer, const jsmntok_t tok[], const char *label); /* Get index'th array member. */ -const jsmntok_t *json_get_arr(const char *buffer, const jsmntok_t tok[], - size_t index); +const jsmntok_t *json_get_arr(const jsmntok_t tok[], size_t index); /* Guide is a string with . for members, [] around indexes. */ const jsmntok_t *json_delve(const char *buffer,