diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index 5bb670d27..fc0b3a5be 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -117,17 +117,6 @@ protected: return dynamic_cast(*m_annotation); } - template - T& abstractAnnotation(std::string _className) const - { - solAssert( - m_annotation, - _className + " is an abstract base, need to call annotation on the concrete class first." - ); - - return dynamic_cast(*m_annotation); - } - private: /// Annotation - is specialised in derived classes, is created upon request (because of polymorphism). mutable std::unique_ptr m_annotation;