Removed StaticJsonBuffer.clear()

This commit is contained in:
Benoit Blanchon
2014-11-06 17:08:42 +01:00
parent d94bcbf249
commit a7b78fadb0
2 changed files with 22 additions and 11 deletions

View File

@ -10,6 +10,9 @@
namespace ArduinoJson {
// Implements a JsonBuffer with fixed memory allocation.
// The template paramenter CAPACITY specifies the capacity of the buffer in
// bytes.
template <size_t CAPACITY>
class StaticJsonBuffer : public JsonBuffer {
public:
@ -18,7 +21,7 @@ class StaticJsonBuffer : public JsonBuffer {
size_t capacity() const { return CAPACITY; }
size_t size() const { return _size; }
void clear() { _size = 0; }
// void clear() { _size = 0; }
protected:
virtual void* alloc(size_t size) {