Selaa lähdekoodia

Removed a useless line of code

Benoit Blanchon 10 vuotta sitten
vanhempi
sitoutus
8b66a25f66
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0 1
      include/ArduinoJson/Internals/BlockJsonBuffer.hpp

+ 0 - 1
include/ArduinoJson/Internals/BlockJsonBuffer.hpp

@@ -68,7 +68,6 @@ class BlockJsonBuffer : public JsonBuffer {
 
   void* allocInNewBlock(size_t bytes) {
     size_t capacity = _nextBlockSize;
-    if (_head != NULL) capacity = _head->capacity * 2;
     if (bytes > capacity) capacity = bytes;
     if (!addNewBlock(capacity)) return NULL;
     _nextBlockSize *= 2;