From 02042b5e4728bdef1ac0e437d713beb9220eff8c Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 10 Jun 2019 08:52:41 +0000 Subject: [PATCH] removed unused functions --- lib/json.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/json.c b/lib/json.c index a7ff6d7..5fdf64d 100644 --- a/lib/json.c +++ b/lib/json.c @@ -178,28 +178,6 @@ static int add_char_to_token (hcl_json_t* json, hcl_ooch_t ch) return 0; } -static HCL_INLINE int is_token (hcl_json_t* json, const hcl_bch_t* str) -{ - return hcl_comp_oochars_bcstr(json->tok.ptr, json->tok.len, str) == 0; -} - -static HCL_INLINE int is_token_integer (hcl_json_t* json, hcl_oow_t* value) -{ - hcl_oow_t i; - hcl_oow_t v = 0; - - if (json->tok.len <= 0) return 0; - - for (i = 0; i < json->tok.len; i++) - { - if (!is_digitchar(json->tok.ptr[i])) return 0; - v = v * 10 + (json->tok.ptr[i] - '0'); - } - - *value = v; - return 1; -} - static HCL_INLINE hcl_ooch_t unescape (hcl_ooch_t c) { switch (c)