From cbedcdf93bd2e79d97ac22d29a8abce48c7ee4b9 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Mon, 7 Jul 2014 19:50:19 +0200 Subject: [PATCH] Minor change --- JsonGenerator/JsonArray.h | 5 ----- JsonGenerator/JsonHashTable.h | 5 ----- JsonGenerator/JsonValue.h | 5 +++++ 3 files changed, 5 insertions(+), 10 deletions(-) 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) {