Skip to content

Commit 9b31348

Browse files
committed
[Sema] NFC: Remove unused declaration
`deriveProtocolRequirement` is no longer a member on `TypeChecker`, it's static.
1 parent c9f1707 commit 9b31348

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

lib/Sema/DerivedConformances.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ void DerivedConformance::diagnoseIfSynthesisUnsupportedForDecl(
280280
ValueDecl *DerivedConformance::getDerivableRequirement(NominalTypeDecl *nominal,
281281
ValueDecl *requirement) {
282282
// Note: whenever you update this function, also update
283-
// TypeChecker::deriveProtocolRequirement.
283+
// deriveProtocolRequirement.
284284
ASTContext &ctx = nominal->getASTContext();
285285
const auto name = requirement->getName();
286286

lib/Sema/TypeChecker.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -826,21 +826,6 @@ void checkConformancesInContext(IterableDeclContext *idc);
826826
/// Check that the type of the given property conforms to NSCopying.
827827
ProtocolConformanceRef checkConformanceToNSCopying(VarDecl *var);
828828

829-
/// Derive an implicit declaration to satisfy a requirement of a derived
830-
/// protocol conformance.
831-
///
832-
/// \param DC The declaration context where the conformance was
833-
/// defined, either the type itself or an extension
834-
/// \param TypeDecl The type for which the requirement is being derived.
835-
/// \param Requirement The protocol requirement.
836-
///
837-
/// \returns nullptr if the derivation failed, or the derived declaration
838-
/// if it succeeded. If successful, the derived declaration is added
839-
/// to TypeDecl's body.
840-
ValueDecl *deriveProtocolRequirement(DeclContext *DC,
841-
NominalTypeDecl *TypeDecl,
842-
ValueDecl *Requirement);
843-
844829
/// \name Name lookup
845830
///
846831
/// Routines that perform name lookup.

0 commit comments

Comments
 (0)