aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/AST.cpp b/AST.cpp
index 5aa67218..68345202 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -280,19 +280,6 @@ TypePointer EnumDefinition::getType(ContractDefinition const*) const
return make_shared<TypeType>(make_shared<EnumType>(*this));
}
-
-unsigned int EnumDefinition::getMemberValue(ASTString const& _member) const
-{
- unsigned int index = 0;
- for (ASTPointer<EnumValue> const& decl: m_members)
- {
- if (decl->getName() == _member)
- return index;
- ++index;
- }
- BOOST_THROW_EXCEPTION(createTypeError("Requested unknown enum value ." + _member));
-}
-
TypePointer FunctionDefinition::getType(ContractDefinition const*) const
{
return make_shared<FunctionType>(*this);