From 77bad18648b8426eb2656f93837aa55351f48c98 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Thu, 1 Dec 2016 11:31:58 +0100 Subject: [PATCH] libevmasm: remove an unused variable `total` --- libevmasm/Assembly.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp index edbb9828f..b040917d3 100644 --- a/libevmasm/Assembly.cpp +++ b/libevmasm/Assembly.cpp @@ -331,8 +331,7 @@ map Assembly::optimiseInternal(bool _enable, bool _isCreation, size_ } map 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 Assembly::optimiseInternal(bool _enable, bool _isCreation, size_ } if (_enable) - total += ConstantOptimisationMethod::optimiseConstants( + ConstantOptimisationMethod::optimiseConstants( _isCreation, _isCreation ? 1 : _runs, *this,