diff --git a/JsonGenerator/JsonArray.h b/JsonGenerator/JsonArray.h index c20c8da3..9427c669 100644 --- a/JsonGenerator/JsonArray.h +++ b/JsonGenerator/JsonArray.h @@ -29,11 +29,6 @@ namespace ArduinoJson items[itemCount++].set(value); } - void add(double value) - { - add<2>(value); - } - template void add(double value) { diff --git a/JsonGenerator/JsonHashTable.h b/JsonGenerator/JsonHashTable.h index 5fd65bc8..a42083cc 100644 --- a/JsonGenerator/JsonHashTable.h +++ b/JsonGenerator/JsonHashTable.h @@ -42,11 +42,6 @@ namespace ArduinoJson itemCount++; } - void add(const char* key, double value) - { - add<2>(key, value); - } - using JsonObjectBase::printTo; private: diff --git a/JsonGenerator/JsonValue.h b/JsonGenerator/JsonValue.h index e255148b..df4dcb8b 100644 --- a/JsonGenerator/JsonValue.h +++ b/JsonGenerator/JsonValue.h @@ -47,6 +47,11 @@ namespace ArduinoJson content.asString.set(value); } + void set(double value) + { + set<2>(value); + } + template void set(double value) {