Skip to content

Commit

Permalink
libevmasm: remove an unused variable total
Browse files Browse the repository at this point in the history
  • Loading branch information
pirapira committed Dec 1, 2016
1 parent 67f274f commit 77bad18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libevmasm/Assembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@ map<u256, u256> Assembly::optimiseInternal(bool _enable, bool _isCreation, size_
}

map<u256, u256> tagReplacements;
unsigned total = 0;
for (unsigned count = 1; count > 0; total += count)
for (unsigned count = 1; count > 0;)
{
count = 0;

Expand Down Expand Up @@ -399,7 +398,7 @@ map<u256, u256> Assembly::optimiseInternal(bool _enable, bool _isCreation, size_
}

if (_enable)
total += ConstantOptimisationMethod::optimiseConstants(
ConstantOptimisationMethod::optimiseConstants(
_isCreation,
_isCreation ? 1 : _runs,
*this,
Expand Down

0 comments on commit 77bad18

Please sign in to comment.