Skip to content

Commit

Permalink
Reduced code size
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed May 31, 2015
1 parent 1b5be89 commit 0aded2a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions include/ArduinoJson/Internals/JsonBufferAllocated.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Internals {
class JsonBufferAllocated {
public:
void *operator new(size_t n, JsonBuffer *jsonBuffer) throw() {
if (!jsonBuffer) return NULL;
return jsonBuffer->alloc(n);
}

Expand Down
3 changes: 0 additions & 3 deletions include/ArduinoJson/JsonVariantBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ class JsonVariantBase {
FORCE_INLINE const JsonObjectSubscript operator[](const char *key) const;
FORCE_INLINE const JsonObjectSubscript operator[](const String &key) const;

protected:
JsonVariantBase() {}

private:
const TImpl *impl() const { return static_cast<const TImpl *>(this); }
};
Expand Down
2 changes: 0 additions & 2 deletions src/Internals/List.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ size_t List<T>::size() const {

template <typename T>
typename List<T>::node_type *List<T>::addNewNode() {
if (!_buffer) return NULL;

node_type *newNode = new (_buffer) node_type();

if (_firstNode) {
Expand Down

0 comments on commit 0aded2a

Please sign in to comment.