Skip to content

Commit

Permalink
Remains
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Jul 24, 2023
1 parent 0f162d0 commit d6595e3
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 31 deletions.
5 changes: 4 additions & 1 deletion extras/tests/Misc/printable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@ TEST_CASE("Printable") {
CHECK(doc[0] == "Hello World!");
CHECK(doc[1] == "Hello World!");
CHECK(allocator.log() == AllocatorLog()
<< AllocatorLog::Allocate(sizeofPool())
<< AllocatorLog::Allocate(sizeofString(31))
<< AllocatorLog::Reallocate(sizeofString(31),
sizeofString(12)));
sizeofString(12))
<< AllocatorLog::Allocate(sizeofString(31))
<< AllocatorLog::Deallocate(sizeofString(31)));
}
}
6 changes: 0 additions & 6 deletions src/ArduinoJson/Array/JsonArray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,6 @@ class JsonArray : public detail::VariantOperators<JsonArray> {
return data_ != 0;
}

// Returns the number of bytes occupied by the array.
// https://arduinojson.org/v6/api/jsonarray/memoryusage/
FORCE_INLINE size_t memoryUsage() const {
return data_ ? data_->memoryUsage(resources_) : 0;
}

// Returns the depth (nesting level) of the array.
// https://arduinojson.org/v6/api/jsonarray/nesting/
FORCE_INLINE size_t nesting() const {
Expand Down
6 changes: 0 additions & 6 deletions src/ArduinoJson/Array/JsonArrayConst.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ class JsonArrayConst : public detail::VariantOperators<JsonArrayConst> {
return data_ != 0;
}

// Returns the number of bytes occupied by the array.
// https://arduinojson.org/v6/api/jsonarrayconst/memoryusage/
FORCE_INLINE size_t memoryUsage() const {
return data_ ? data_->memoryUsage(resources_) : 0;
}

// Returns the depth (nesting level) of the array.
// https://arduinojson.org/v6/api/jsonarrayconst/nesting/
FORCE_INLINE size_t nesting() const {
Expand Down
6 changes: 0 additions & 6 deletions src/ArduinoJson/Document/JsonDocument.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@ class JsonDocument : public detail::VariantOperators<const JsonDocument&> {
return getSlot().isNull();
}

// Returns the number of used bytes in the memory pool.
// https://arduinojson.org/v6/api/jsondocument/memoryusage/
size_t memoryUsage() const {
return resources_.size();
}

// Returns trues if the memory pool was too small.
// https://arduinojson.org/v6/api/jsondocument/overflowed/
bool overflowed() const {
Expand Down
6 changes: 0 additions & 6 deletions src/ArduinoJson/Object/JsonObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ class JsonObject : public detail::VariantOperators<JsonObject> {
return data_ != 0;
}

// Returns the number of bytes occupied by the object.
// https://arduinojson.org/v6/api/jsonobject/memoryusage/
FORCE_INLINE size_t memoryUsage() const {
return data_ ? data_->memoryUsage(resources_) : 0;
}

// Returns the depth (nesting level) of the object.
// https://arduinojson.org/v6/api/jsonobject/nesting/
FORCE_INLINE size_t nesting() const {
Expand Down
6 changes: 0 additions & 6 deletions src/ArduinoJson/Object/JsonObjectConst.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ class JsonObjectConst : public detail::VariantOperators<JsonObjectConst> {
return data_ != 0;
}

// Returns the number of bytes occupied by the object.
// https://arduinojson.org/v6/api/jsonobjectconst/memoryusage/
FORCE_INLINE size_t memoryUsage() const {
return data_ ? data_->memoryUsage(resources_) : 0;
}

// Returns the depth (nesting level) of the object.
// https://arduinojson.org/v6/api/jsonobjectconst/nesting/
FORCE_INLINE size_t nesting() const {
Expand Down

0 comments on commit d6595e3

Please sign in to comment.