mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove now-unused abstractAnnotation helper
This commit is contained in:
parent
dc380f017f
commit
3726f7448e
@ -117,17 +117,6 @@ protected:
|
|||||||
return dynamic_cast<T&>(*m_annotation);
|
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:
|
private:
|
||||||
/// Annotation - is specialised in derived classes, is created upon request (because of polymorphism).
|
/// Annotation - is specialised in derived classes, is created upon request (because of polymorphism).
|
||||||
mutable std::unique_ptr<ASTAnnotation> m_annotation;
|
mutable std::unique_ptr<ASTAnnotation> m_annotation;
|
||||||
|
Loading…
Reference in New Issue
Block a user