Skip to content

Commit 5240a69

Browse files
committed
Sema: Remove unused isNonGenericTypeAliasType() function
1 parent 511bd67 commit 5240a69

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,14 +2795,6 @@ bool TypeChecker::isPassThroughTypealias(TypeAliasDecl *typealias,
27952795
});
27962796
}
27972797

2798-
static bool isNonGenericTypeAliasType(Type type) {
2799-
// A non-generic typealias can extend a specialized type.
2800-
if (auto *aliasType = dyn_cast<TypeAliasType>(type.getPointer()))
2801-
return aliasType->getDecl()->getGenericContextDepth() == (unsigned)-1;
2802-
2803-
return false;
2804-
}
2805-
28062798
Type
28072799
ExtendedTypeRequest::evaluate(Evaluator &eval, ExtensionDecl *ext) const {
28082800
auto error = [&ext]() {

0 commit comments

Comments
 (0)