libevmasm: remove an unused variable total

This commit is contained in:
Yoichi Hirai 2016-12-01 11:31:58 +01:00
parent 67f274f66c
commit 77bad18648
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

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,