mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Removed content.asFloat
This commit is contained in:
		| @@ -17,11 +17,6 @@ size_t JsonValue::printDoubleTo(Print& p) const | |||||||
|     return p.print(content.asDouble.value, content.asDouble.digits); |     return p.print(content.asDouble.value, content.asDouble.digits); | ||||||
| } | } | ||||||
|  |  | ||||||
| size_t JsonValue::printFloatTo(Print& p) const |  | ||||||
| { |  | ||||||
|     return p.print(content.asFloat); |  | ||||||
| } |  | ||||||
|  |  | ||||||
| size_t JsonValue::printLongTo(Print& p) const | size_t JsonValue::printLongTo(Print& p) const | ||||||
| { | { | ||||||
|     return p.print(content.asLong); |     return p.print(content.asLong); | ||||||
|   | |||||||
| @@ -33,12 +33,6 @@ namespace ArduinoJson | |||||||
|                 content.asDouble.digits = digits; |                 content.asDouble.digits = digits; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             JsonValue(float value) |  | ||||||
|                 : implementation(&JsonValue::printFloatTo) |  | ||||||
|             { |  | ||||||
|                 content.asFloat = value; |  | ||||||
|             } |  | ||||||
|  |  | ||||||
|             JsonValue(long value) |             JsonValue(long value) | ||||||
|                 : implementation(&JsonValue::printLongTo) |                 : implementation(&JsonValue::printLongTo) | ||||||
|             { |             { | ||||||
| @@ -74,7 +68,6 @@ namespace ArduinoJson | |||||||
|             union Content |             union Content | ||||||
|             { |             { | ||||||
|                 bool        asBool; |                 bool        asBool; | ||||||
|                 float       asFloat; |  | ||||||
|                 long        asLong; |                 long        asLong; | ||||||
|                 Printable*  asPrintable; |                 Printable*  asPrintable; | ||||||
|                 const char* asString; |                 const char* asString; | ||||||
| @@ -91,7 +84,6 @@ namespace ArduinoJson | |||||||
|  |  | ||||||
|             size_t printBoolTo(Print& p) const; |             size_t printBoolTo(Print& p) const; | ||||||
|             size_t printDoubleTo(Print& p) const; |             size_t printDoubleTo(Print& p) const; | ||||||
|             size_t printFloatTo(Print& p) const; |  | ||||||
|             size_t printLongTo(Print& p) const; |             size_t printLongTo(Print& p) const; | ||||||
|             size_t printPrintableTo(Print& p) const; |             size_t printPrintableTo(Print& p) const; | ||||||
|             size_t printStringTo(Print& p) const; |             size_t printStringTo(Print& p) const; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user