[libsolidity] Types: eliminate redundant MagicType::metaType() (use TypeProvider instead)

This commit is contained in:
Christian Parpart 2019-04-17 12:59:48 +02:00
parent a99a460c79
commit b83097bdc6
No known key found for this signature in database
GPG Key ID: 19BC8DD20312C929
3 changed files with 1 additions and 9 deletions

View File

@ -231,7 +231,7 @@ TypePointers TypeChecker::typeCheckMetaTypeFunctionAndRetrieveReturnType(Functio
return {};
}
return {MagicType::metaType(dynamic_cast<TypeType const&>(*firstArgType).actualType())};
return {TypeProvider::metaType(dynamic_cast<TypeType const&>(*firstArgType).actualType())};
}
void TypeChecker::endVisit(InheritanceSpecifier const& _inheritance)

View File

@ -3415,11 +3415,6 @@ string ModuleType::toString(bool) const
return string("module \"") + m_sourceUnit.annotation().path + string("\"");
}
MagicType const* MagicType::metaType(TypePointer _type)
{
return TypeProvider::metaType(_type);
}
string MagicType::richIdentifier() const
{
switch (m_kind)

View File

@ -1346,9 +1346,6 @@ public:
Category category() const override { return Category::Magic; }
/// Factory function for meta type
static MagicType const* metaType(TypePointer _type);
TypeResult binaryOperatorResult(Token, Type const*) const override
{
return nullptr;