Skip to content

Commit b181b93

Browse files
committed
Sema: Remove a couple of TypeChecker methods that are no longer used outside of TypeCheckGeneric.cpp
1 parent 2672afb commit b181b93

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

lib/Sema/TypeCheckGeneric.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ static bool checkGenericFuncSignature(TypeChecker &tc,
576576
return badType;
577577
}
578578

579-
void TypeChecker::revertGenericFuncSignature(AbstractFunctionDecl *func) {
579+
static void revertGenericFuncSignature(AbstractFunctionDecl *func) {
580580
// Revert the result type.
581581
if (auto fn = dyn_cast<FuncDecl>(func))
582582
if (!fn->getBodyResultTypeLoc().isNull())
@@ -1047,7 +1047,7 @@ static bool checkGenericSubscriptSignature(TypeChecker &tc,
10471047
return badType;
10481048
}
10491049

1050-
void TypeChecker::revertGenericSubscriptSignature(SubscriptDecl *subscript) {
1050+
static void revertGenericSubscriptSignature(SubscriptDecl *subscript) {
10511051
// Revert the element type.
10521052
if (!subscript->getElementTypeLoc().isNull())
10531053
revertDependentTypeLoc(subscript->getElementTypeLoc());

lib/Sema/TypeChecker.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,11 +1278,6 @@ class TypeChecker final : public LazyResolver {
12781278
/// of a generic function.
12791279
void validateGenericFuncSignature(AbstractFunctionDecl *func);
12801280

1281-
/// Revert the signature of a generic function to its pre-type-checked state,
1282-
/// so that it can be type checked again when we have resolved its generic
1283-
/// parameters.
1284-
void revertGenericFuncSignature(AbstractFunctionDecl *func);
1285-
12861281
/// Check the generic parameters in the given generic parameter list (and its
12871282
/// parent generic parameter lists) according to the given resolver.
12881283
void checkGenericParamList(GenericSignatureBuilder *builder,
@@ -1294,11 +1289,6 @@ class TypeChecker final : public LazyResolver {
12941289
/// of a generic subscript.
12951290
void validateGenericSubscriptSignature(SubscriptDecl *subscript);
12961291

1297-
/// Revert the signature of a generic function to its pre-type-checked state,
1298-
/// so that it can be type checked again when we have resolved its generic
1299-
/// parameters.
1300-
void revertGenericSubscriptSignature(SubscriptDecl *subscript);
1301-
13021292
/// Configure the interface type of a subscript declaration.
13031293
void configureInterfaceType(SubscriptDecl *subscript,
13041294
GenericSignature *sig);

0 commit comments

Comments
 (0)