forked from bblanchon/ArduinoJson
MemoryPool: remove unused functions
This commit is contained in:
@ -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_;
|
||||
|
Reference in New Issue
Block a user