From dc380f017f3fed2847ea88107c7b74a91dc4ad23 Mon Sep 17 00:00:00 2001 From: Jason Cobb Date: Tue, 7 Jan 2020 08:34:20 -0500 Subject: [PATCH] Make CallableDeclaration::annotation pure virtual --- libsolidity/ast/AST.cpp | 6 ------ libsolidity/ast/AST.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp index 8fd482b73..f11725469 100644 --- a/libsolidity/ast/AST.cpp +++ b/libsolidity/ast/AST.cpp @@ -300,12 +300,6 @@ ContractKind FunctionDefinition::inContractKind() const return contractDef->contractKind(); } -CallableDeclarationAnnotation& CallableDeclaration::annotation() const -{ - return abstractAnnotation("CallableDeclarationAnnotation"); -} - - FunctionTypePointer FunctionDefinition::functionType(bool _internal) const { if (_internal) diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index 28a5cc76e..5bb670d27 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -637,7 +637,7 @@ public: bool markedVirtual() const { return m_isVirtual; } virtual bool virtualSemantics() const { return markedVirtual(); } - CallableDeclarationAnnotation& annotation() const override; + CallableDeclarationAnnotation& annotation() const override = 0; protected: ASTPointer m_parameters;