Skip to content

Commit

Permalink
Merge pull request #126 from d-frey/patch-2
Browse files Browse the repository at this point in the history
Remove superfluous inefficiency
  • Loading branch information
nlohmann committed Oct 3, 2015
2 parents 99261bf + 1c43789 commit 83d068c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,6 @@ class basic_json
AllocatorType<object_t> alloc;
alloc.destroy(m_value.object);
alloc.deallocate(m_value.object, 1);
m_value.object = nullptr;
break;
}

Expand All @@ -1692,7 +1691,6 @@ class basic_json
AllocatorType<array_t> alloc;
alloc.destroy(m_value.array);
alloc.deallocate(m_value.array, 1);
m_value.array = nullptr;
break;
}

Expand All @@ -1701,7 +1699,6 @@ class basic_json
AllocatorType<string_t> alloc;
alloc.destroy(m_value.string);
alloc.deallocate(m_value.string, 1);
m_value.string = nullptr;
break;
}

Expand Down

0 comments on commit 83d068c

Please sign in to comment.