mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Remove now-unused NameAliasType.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user