mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Removed dead code
This commit is contained in:
		| @@ -5,13 +5,14 @@ | ||||
| #pragma once | ||||
|  | ||||
| #include <ArduinoJson/Memory/Alignment.hpp> | ||||
| #include <ArduinoJson/Memory/StringSlot.hpp> | ||||
| #include <ArduinoJson/Polyfills/assert.hpp> | ||||
| #include <ArduinoJson/Polyfills/mpl/max.hpp> | ||||
| #include <ArduinoJson/Variant/VariantSlot.hpp> | ||||
|  | ||||
| #include <string.h>  // memmove | ||||
|  | ||||
| #define JSON_STRING_SIZE(SIZE) (SIZE + 1) | ||||
|  | ||||
| namespace ARDUINOJSON_NAMESPACE { | ||||
|  | ||||
| // _begin                                   _end | ||||
| @@ -143,10 +144,6 @@ class MemoryPool { | ||||
|   } | ||||
|  | ||||
|  private: | ||||
|   StringSlot* allocStringSlot() { | ||||
|     return allocRight<StringSlot>(); | ||||
|   } | ||||
|  | ||||
|   void checkInvariants() { | ||||
|     ARDUINOJSON_ASSERT(_begin <= _left); | ||||
|     ARDUINOJSON_ASSERT(_left <= _right); | ||||
|   | ||||
| @@ -1,19 +0,0 @@ | ||||
| // ArduinoJson - arduinojson.org | ||||
| // Copyright Benoit Blanchon 2014-2020 | ||||
| // MIT License | ||||
|  | ||||
| #pragma once | ||||
|  | ||||
| #include <stddef.h>  // for size_t | ||||
|  | ||||
| #include <ArduinoJson/Namespace.hpp> | ||||
|  | ||||
| #define JSON_STRING_SIZE(SIZE) (SIZE + 1) | ||||
|  | ||||
| namespace ARDUINOJSON_NAMESPACE { | ||||
|  | ||||
| struct StringSlot { | ||||
|   char *value; | ||||
|   size_t size; | ||||
| }; | ||||
| }  // namespace ARDUINOJSON_NAMESPACE | ||||
		Reference in New Issue
	
	Block a user