Skip to content

Commit

Permalink
Removed #if 1 block (ethereum#5631)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjgf committed Jul 8, 2019
1 parent 24c8c1c commit fbdd79e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions libdevcore/OverlayDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,26 +140,7 @@ bool OverlayDB::exists(h256 const& _h) const

void OverlayDB::kill(h256 const& _h)
{
#if 1
if (!StateCacheDB::kill(_h))
{
if (m_db)
{
if (!m_db->exists(toSlice(_h)))
{
// No point node ref decreasing for EmptyTrie since we never bother incrementing it
// in the first place for empty storage tries.
if (_h != EmptyTrie)
cnote << "Decreasing DB node ref count below zero with no DB node. Probably "
"have a corrupt Trie."
<< _h;
// TODO: for 1.1: ref-counted triedb.
}
}
}
#else
StateCacheDB::kill(_h);
#endif
}

}

0 comments on commit fbdd79e

Please sign in to comment.