From 76372860741f8dd77f50b75dd696bf869acf2dc4 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 9 Sep 2021 18:37:44 +0200 Subject: [PATCH] Remove unused function. --- libsolidity/codegen/Compiler.cpp | 5 ----- libsolidity/codegen/Compiler.h | 4 ---- 2 files changed, 9 deletions(-) diff --git a/libsolidity/codegen/Compiler.cpp b/libsolidity/codegen/Compiler.cpp index e3308b2de..c044760a0 100644 --- a/libsolidity/codegen/Compiler.cpp +++ b/libsolidity/codegen/Compiler.cpp @@ -60,8 +60,3 @@ std::shared_ptr Compiler::runtimeAssemblyPtr() const solAssert(m_context.runtimeContext(), ""); return m_context.runtimeContext()->assemblyPtr(); } - -evmasm::AssemblyItem Compiler::functionEntryLabel(FunctionDefinition const& _function) const -{ - return m_runtimeContext.functionEntryLabelIfExists(_function); -} diff --git a/libsolidity/codegen/Compiler.h b/libsolidity/codegen/Compiler.h index 0d021b723..1267c1a2d 100644 --- a/libsolidity/codegen/Compiler.h +++ b/libsolidity/codegen/Compiler.h @@ -62,10 +62,6 @@ public: std::string generatedYulUtilityCode() const { return m_context.generatedYulUtilityCode(); } std::string runtimeGeneratedYulUtilityCode() const { return m_runtimeContext.generatedYulUtilityCode(); } - /// @returns the entry label of the given function. Might return an AssemblyItem of type - /// UndefinedItem if it does not exist yet. - evmasm::AssemblyItem functionEntryLabel(FunctionDefinition const& _function) const; - private: OptimiserSettings const m_optimiserSettings; CompilerContext m_runtimeContext;