Skip to content

Commit 940f044

Browse files
committed
[NFC] ConformanceChecker: Remove unused 'CheckedRequirementSignature' ivar
1 parent a5a15ba commit 940f044

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4847,12 +4847,6 @@ ResolveWitnessResult ConformanceChecker::resolveTypeWitnessViaLookup(
48474847
void ConformanceChecker::ensureRequirementsAreSatisfied() {
48484848
Conformance->finishSignatureConformances();
48494849
auto proto = Conformance->getProtocol();
4850-
4851-
if (CheckedRequirementSignature)
4852-
return;
4853-
4854-
CheckedRequirementSignature = true;
4855-
48564850
auto &diags = proto->getASTContext().Diags;
48574851

48584852
auto DC = Conformance->getDeclContext();

lib/Sema/TypeCheckProtocol.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,9 +716,6 @@ class ConformanceChecker : public WitnessChecker {
716716
/// Whether we've already complained about problems with this conformance.
717717
bool AlreadyComplained = false;
718718

719-
/// Whether we checked the requirement signature already.
720-
bool CheckedRequirementSignature = false;
721-
722719
/// Mapping from Objective-C methods to the set of requirements within this
723720
/// protocol that have the same selector and instance/class designation.
724721
llvm::SmallDenseMap<ObjCMethodKey, TinyPtrVector<AbstractFunctionDecl *>, 4>

0 commit comments

Comments
 (0)