Skip to content

Commit 6951cc1

Browse files
committed
Sema: Remove TypeChecker::checkConformance()
1 parent 528519c commit 6951cc1

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5332,12 +5332,6 @@ TypeChecker::couldDynamicallyConformToProtocol(Type type, ProtocolDecl *Proto,
53325332
return !M->checkConformance(type, Proto).isInvalid();
53335333
}
53345334

5335-
void TypeChecker::checkConformance(NormalProtocolConformance *conformance) {
5336-
MultiConformanceChecker checker(conformance->getProtocol()->getASTContext());
5337-
checker.addConformance(conformance);
5338-
checker.checkAllConformances();
5339-
}
5340-
53415335
/// Determine the score when trying to match two identifiers together.
53425336
static unsigned scoreIdentifiers(Identifier lhs, Identifier rhs,
53435337
unsigned limit) {

lib/Sema/TypeChecker.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,6 @@ bool conformsToKnownProtocol(Type type, KnownProtocolKind protocol,
811811
/// \returns True if \p T conforms to the protocol \p Proto, false otherwise.
812812
bool couldDynamicallyConformToProtocol(Type T, ProtocolDecl *Proto,
813813
ModuleDecl *M);
814-
/// Completely check the given conformance.
815-
void checkConformance(NormalProtocolConformance *conformance);
816814

817815
/// Check all of the conformances in the given context.
818816
void checkConformancesInContext(IterableDeclContext *idc);

0 commit comments

Comments
 (0)