aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/Assembly.cpp
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-12-01 18:31:58 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-12-01 18:31:58 +0800
commit77bad18648b8426eb2656f93837aa55351f48c98 (patch)
treef57db711193de1fe88eb0aaed1bf0e4427f580bf /libevmasm/Assembly.cpp
parent67f274f66c65058c784e610767144cfe32a7dd2c (diff)
downloaddexon-solidity-77bad18648b8426eb2656f93837aa55351f48c98.tar.gz
dexon-solidity-77bad18648b8426eb2656f93837aa55351f48c98.tar.zst
dexon-solidity-77bad18648b8426eb2656f93837aa55351f48c98.zip
libevmasm: remove an unused variable `total`
Diffstat (limited to 'libevmasm/Assembly.cpp')
-rw-r--r--libevmasm/Assembly.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp
index edbb9828..b040917d 100644
--- a/libevmasm/Assembly.cpp
+++ b/libevmasm/Assembly.cpp
@@ -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,