[AST] Remove now-unused NameAliasType.

This commit is contained in:
Doug Gregor
2018-03-25 20:57:47 -07:00
parent 9cfbd30215
commit c43f96a855
23 changed files with 13 additions and 204 deletions

View File

@@ -455,8 +455,6 @@ static bool initDocEntityInfo(const TextEntity &Entity,
}
static const TypeDecl *getTypeDeclFromType(Type Ty) {
if (auto Alias = dyn_cast<NameAliasType>(Ty.getPointer()))
return Alias->getDecl();
if (auto BoundAlias = dyn_cast<BoundNameAliasType>(Ty.getPointer()))
return BoundAlias->getDecl();
return Ty->getAnyNominal();