aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-12-01 22:12:28 +0800
committerGitHub <noreply@github.com>2016-12-01 22:12:28 +0800
commit267ac7088963652869fd123dcda755c5ecde798b (patch)
treec59211ff3484df82508343c721a2333150cdd863
parent2f9a91a034bf25849ed106ec4bd795e594cee584 (diff)
parent77bad18648b8426eb2656f93837aa55351f48c98 (diff)
downloaddexon-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`
-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,