forked from bblanchon/ArduinoJson
Extracting a common base class for JsonArray and JsonObject...
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
|
||||
#include "../include/ArduinoJson/JsonArray.hpp"
|
||||
|
||||
#include "../include/ArduinoJson/Internals/PlacementNew.hpp"
|
||||
#include "../include/ArduinoJson/Internals/PrettyJsonWriter.hpp"
|
||||
#include "../include/ArduinoJson/JsonBuffer.hpp"
|
||||
#include "../include/ArduinoJson/JsonObject.hpp"
|
||||
@ -31,12 +30,6 @@ JsonVariant &JsonArray::add() {
|
||||
return node->content;
|
||||
}
|
||||
|
||||
JsonArray::node_type *JsonArray::createNode() {
|
||||
if (!_buffer) return NULL;
|
||||
void *ptr = _buffer->alloc(sizeof(node_type));
|
||||
return ptr ? new (ptr) node_type() : NULL;
|
||||
}
|
||||
|
||||
void JsonArray::addNode(node_type *newNode) {
|
||||
if (_firstNode) {
|
||||
node_type *lastNode = _firstNode;
|
||||
|
Reference in New Issue
Block a user