From f448e805e93b3daf8f1207be01ebed940930be26 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Tue, 25 Aug 2020 14:36:14 +0200 Subject: [PATCH] Removed dead code --- src/ArduinoJson/Memory/MemoryPool.hpp | 7 ++----- src/ArduinoJson/Memory/StringSlot.hpp | 19 ------------------- 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 src/ArduinoJson/Memory/StringSlot.hpp diff --git a/src/ArduinoJson/Memory/MemoryPool.hpp b/src/ArduinoJson/Memory/MemoryPool.hpp index f97ddf1f..cb17334a 100644 --- a/src/ArduinoJson/Memory/MemoryPool.hpp +++ b/src/ArduinoJson/Memory/MemoryPool.hpp @@ -5,13 +5,14 @@ #pragma once #include -#include #include #include #include #include // memmove +#define JSON_STRING_SIZE(SIZE) (SIZE + 1) + namespace ARDUINOJSON_NAMESPACE { // _begin _end @@ -143,10 +144,6 @@ class MemoryPool { } private: - StringSlot* allocStringSlot() { - return allocRight(); - } - void checkInvariants() { ARDUINOJSON_ASSERT(_begin <= _left); ARDUINOJSON_ASSERT(_left <= _right); diff --git a/src/ArduinoJson/Memory/StringSlot.hpp b/src/ArduinoJson/Memory/StringSlot.hpp deleted file mode 100644 index 47a2eb5f..00000000 --- a/src/ArduinoJson/Memory/StringSlot.hpp +++ /dev/null @@ -1,19 +0,0 @@ -// ArduinoJson - arduinojson.org -// Copyright Benoit Blanchon 2014-2020 -// MIT License - -#pragma once - -#include // for size_t - -#include - -#define JSON_STRING_SIZE(SIZE) (SIZE + 1) - -namespace ARDUINOJSON_NAMESPACE { - -struct StringSlot { - char *value; - size_t size; -}; -} // namespace ARDUINOJSON_NAMESPACE