From a1e8c8800a8771d7e99a138ed948b8e77a341568 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Sat, 19 Jul 2014 15:34:44 +0200 Subject: [PATCH] Removed uneeded cast operators --- JsonParser/JsonValue.cpp | 10 ---------- JsonParser/JsonValue.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/JsonParser/JsonValue.cpp b/JsonParser/JsonValue.cpp index 0b3526d4..8b76c2cf 100644 --- a/JsonParser/JsonValue.cpp +++ b/JsonParser/JsonValue.cpp @@ -52,14 +52,4 @@ JsonValue::operator long() JsonValue::operator char*() { return isString() || isPrimitive() ? getText() : 0; -} - -JsonValue::operator JsonArray() -{ - return *this; -} - -JsonValue::operator JsonObject() -{ - return *this; } \ No newline at end of file diff --git a/JsonParser/JsonValue.h b/JsonParser/JsonValue.h index 84ab4a61..1864b425 100644 --- a/JsonParser/JsonValue.h +++ b/JsonParser/JsonValue.h @@ -48,8 +48,6 @@ namespace ArduinoJson operator double(); operator long(); operator char*(); - operator JsonArray(); - operator JsonObject(); JsonValue operator[](int index); JsonValue operator[](const char*key); };