Merge pull request #1460 from ethereum/unused-total

libevmasm: remove an unused variable `total`
This commit is contained in:
chriseth 2016-12-01 15:12:28 +01:00 committed by GitHub
commit 267ac70889

View File

@ -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;
@ -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,