diff options
author | mordax <maya@mordax.io> | 2018-11-16 09:09:04 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-11-21 22:37:32 +0800 |
commit | ea8b7d803ebd151401be7479f48afb0ad19f5f74 (patch) | |
tree | be363297661531057296c468c15c5003510540d5 /libevmasm/ConstantOptimiser.h | |
parent | d3f66ca0fab130e801b012bd192e1e8e97fb3761 (diff) | |
download | dexon-solidity-ea8b7d803ebd151401be7479f48afb0ad19f5f74.tar dexon-solidity-ea8b7d803ebd151401be7479f48afb0ad19f5f74.tar.gz dexon-solidity-ea8b7d803ebd151401be7479f48afb0ad19f5f74.tar.bz2 dexon-solidity-ea8b7d803ebd151401be7479f48afb0ad19f5f74.tar.lz dexon-solidity-ea8b7d803ebd151401be7479f48afb0ad19f5f74.tar.xz dexon-solidity-ea8b7d803ebd151401be7479f48afb0ad19f5f74.tar.zst dexon-solidity-ea8b7d803ebd151401be7479f48afb0ad19f5f74.zip |
Removing redundant virtual from override function declaration
Remove trailing whitespace
Remove changelog change
Diffstat (limited to 'libevmasm/ConstantOptimiser.h')
-rw-r--r-- | libevmasm/ConstantOptimiser.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libevmasm/ConstantOptimiser.h b/libevmasm/ConstantOptimiser.h index 2c753fa8..2c2b87a0 100644 --- a/libevmasm/ConstantOptimiser.h +++ b/libevmasm/ConstantOptimiser.h @@ -109,8 +109,8 @@ class LiteralMethod: public ConstantOptimisationMethod public: explicit LiteralMethod(Params const& _params, u256 const& _value): ConstantOptimisationMethod(_params, _value) {} - virtual bigint gasNeeded() const override; - virtual AssemblyItems execute(Assembly&) const override { return AssemblyItems{}; } + bigint gasNeeded() const override; + AssemblyItems execute(Assembly&) const override { return AssemblyItems{}; } }; /** @@ -120,8 +120,8 @@ class CodeCopyMethod: public ConstantOptimisationMethod { public: explicit CodeCopyMethod(Params const& _params, u256 const& _value); - virtual bigint gasNeeded() const override; - virtual AssemblyItems execute(Assembly& _assembly) const override; + bigint gasNeeded() const override; + AssemblyItems execute(Assembly& _assembly) const override; protected: static AssemblyItems const& copyRoutine(); @@ -144,8 +144,8 @@ public: ); } - virtual bigint gasNeeded() const override { return gasNeeded(m_routine); } - virtual AssemblyItems execute(Assembly&) const override + bigint gasNeeded() const override { return gasNeeded(m_routine); } + AssemblyItems execute(Assembly&) const override { return m_routine; } |