Skip to content

Commit b928078

Browse files
authored
Merge pull request #60015 from slavapestov/unused-utility-function
Sema: Remove unused isNonGenericTypeAliasType() function
2 parents d74384c + 5240a69 commit b928078

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)