From 65a8d2286131f8f03feae0c6a64d122161789f15 Mon Sep 17 00:00:00 2001 From: rafagafe Date: Mon, 14 May 2018 13:01:35 +0200 Subject: [PATCH] A unused function is removed. --- example-02.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/example-02.c b/example-02.c index ecae1b1..5845b10 100644 --- a/example-02.c +++ b/example-02.c @@ -27,25 +27,6 @@ #include #include "tiny-json.h" -/** Get the name of a json type code. - * @param type the json type code. - * @return A null-terminated string with the name. */ -static char const* getJsonTypeName( jsonType_t type ) { - static struct { jsonType_t type; char const* name; } const pair[] = { - { JSON_OBJ, "object" }, - { JSON_TEXT, "text" }, - { JSON_BOOLEAN, "boolean" }, - { JSON_INTEGER, "integer" }, - { JSON_NULL, "null" }, - { JSON_ARRAY, "array" }, - }; - unsigned int i; - for( i = 0; i < sizeof pair / sizeof *pair; ++i ) - if ( pair[i].type == type ) - return pair[i].name; - return "Unknown"; -} - /** Print the value os a json object or array. * @param json The handler of the json object or array. */ static void dump( json_t const* json ) {