From 56b3b4d5a985af0cb3bf4920f424712a85b32209 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Tue, 13 Jun 2023 14:52:24 +0200 Subject: [PATCH] MemoryPool: remove unused functions --- src/ArduinoJson/Memory/MemoryPool.hpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/ArduinoJson/Memory/MemoryPool.hpp b/src/ArduinoJson/Memory/MemoryPool.hpp index e5c9df3d..c7f24b95 100644 --- a/src/ArduinoJson/Memory/MemoryPool.hpp +++ b/src/ArduinoJson/Memory/MemoryPool.hpp @@ -56,11 +56,6 @@ class MemoryPool { allocPool(requiredSize); } - void* buffer() { - return begin_; // NOLINT(clang-analyzer-unix.Malloc) - // movePointers() alters this pointer - } - // Gets the capacity of the memoryPool in bytes size_t capacity() const { return size_t(end_ - begin_); @@ -180,10 +175,6 @@ class MemoryPool { return begin_ + bytes <= right_; } - bool owns(void* p) const { - return begin_ <= p && p < end_; - } - // Workaround for missing placement new void* operator new(size_t, void* p) { return p; @@ -227,12 +218,6 @@ class MemoryPool { end_ += offset; } - void checkInvariants() { - ARDUINOJSON_ASSERT(begin_ <= right_); - ARDUINOJSON_ASSERT(right_ <= end_); - ARDUINOJSON_ASSERT(isAligned(right_)); - } - void deallocAllStrings() { while (strings_) { auto node = strings_;