diff options
author | chriseth <chris@ethereum.org> | 2016-12-01 22:12:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-01 22:12:28 +0800 |
commit | 267ac7088963652869fd123dcda755c5ecde798b (patch) | |
tree | c59211ff3484df82508343c721a2333150cdd863 /libevmasm/Assembly.cpp | |
parent | 2f9a91a034bf25849ed106ec4bd795e594cee584 (diff) | |
parent | 77bad18648b8426eb2656f93837aa55351f48c98 (diff) | |
download | dexon-solidity-267ac7088963652869fd123dcda755c5ecde798b.tar.gz dexon-solidity-267ac7088963652869fd123dcda755c5ecde798b.tar.zst dexon-solidity-267ac7088963652869fd123dcda755c5ecde798b.zip |
Merge pull request #1460 from ethereum/unused-total
libevmasm: remove an unused variable `total`
Diffstat (limited to 'libevmasm/Assembly.cpp')
-rw-r--r-- | libevmasm/Assembly.cpp | 5 |
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, |