diff --git a/include/Cytoplasm/Json.h b/include/Cytoplasm/Json.h index b2a6e23..261aced 100644 --- a/include/Cytoplasm/Json.h +++ b/include/Cytoplasm/Json.h @@ -297,12 +297,6 @@ extern size_t JsonEncode(HashMap *, Stream *, int); */ extern HashMap * JsonDecode(Stream *); -/** - * Decodes a JSON value from thr current input strram and parse it - * into a JsonValue. - */ -extern JsonValue * JsonValueDecode(Stream *); - /** * A convenience function that allows the caller to retrieve and * arbitrarily deep keys within a JSON object. It takes a root JSON diff --git a/src/Json.c b/src/Json.c index df33703..872c266 100644 --- a/src/Json.c +++ b/src/Json.c @@ -1348,25 +1348,6 @@ JsonDecode(Stream * stream) return result; } -JsonValue * -JsonValueDecode(Stream *stream) -{ - JsonValue *result; - JsonParserState state; - - state.stream = stream; - state.token = NULL; - - JsonTokenSeek(&state); - result = JsonDecodeValue(&state); - - if (state.token) - { - Free(state.token); - } - - return result; -} JsonValue * JsonGet(HashMap * json, size_t nArgs,...)