Benoit Blanchon 11 лет назад
Родитель
Сommit
cbedcdf93b
3 измененных файлов с 5 добавлено и 10 удалено
  1. 0 5
      JsonGenerator/JsonArray.h
  2. 0 5
      JsonGenerator/JsonHashTable.h
  3. 5 0
      JsonGenerator/JsonValue.h

+ 0 - 5
JsonGenerator/JsonArray.h

@@ -29,11 +29,6 @@ namespace ArduinoJson
                 items[itemCount++].set(value);
             }
 
-            void add(double value)
-            {
-                add<2>(value);
-            }
-
             template<int DIGITS>
             void add(double value)
             {

+ 0 - 5
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:

+ 5 - 0
JsonGenerator/JsonValue.h

@@ -47,6 +47,11 @@ namespace ArduinoJson
                 content.asString.set(value);
             }
 
+            void set(double value)
+            {
+                set<2>(value);
+            }
+
             template<int DIGITS>
             void set(double value)
             {