Remove now-unused abstractAnnotation helper

This commit is contained in:
Jason Cobb 2020-01-09 08:44:24 -05:00
parent dc380f017f
commit 3726f7448e
No known key found for this signature in database
GPG Key ID: 2A3F6A6DCA1E8DED

View File

@ -117,17 +117,6 @@ protected:
return dynamic_cast<T&>(*m_annotation);
}
template <class T>
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<T&>(*m_annotation);
}
private:
/// Annotation - is specialised in derived classes, is created upon request (because of polymorphism).
mutable std::unique_ptr<ASTAnnotation> m_annotation;