mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Reduced size by 52 bytes by inlining createNode()
This commit is contained in:
@@ -20,13 +20,6 @@ int List<T>::size() const {
|
||||
return nodeCount;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
typename List<T>::node_type *List<T>::createNode() {
|
||||
if (!_buffer) return NULL;
|
||||
void *ptr = _buffer->alloc(sizeof(node_type));
|
||||
return ptr ? new (ptr) node_type() : NULL;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void List<T>::addNode(node_type *nodeToAdd) {
|
||||
if (_firstNode) {
|
||||
|
||||
Reference in New Issue
Block a user