diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-12-01 18:31:58 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-12-01 18:31:58 +0800 |
commit | 77bad18648b8426eb2656f93837aa55351f48c98 (patch) | |
tree | f57db711193de1fe88eb0aaed1bf0e4427f580bf /libevmasm/Assembly.cpp | |
parent | 67f274f66c65058c784e610767144cfe32a7dd2c (diff) | |
download | dexon-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.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, |