Skip to content

Commit 280bb30

Browse files
committed
[GSB] Remove an unused entrypoint.
1 parent 3b9cb5a commit 280bb30

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

include/swift/AST/GenericSignatureBuilder.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -992,11 +992,6 @@ class GenericSignatureBuilder::RequirementSource final
992992
/// path.
993993
bool isDerivedRequirement() const;
994994

995-
/// Whether the requirement is derived via some concrete conformance, e.g.,
996-
/// a concrete type's conformance to a protocol or a superclass's conformance
997-
/// to a protocol.
998-
bool isDerivedViaConcreteConformance() const;
999-
1000995
/// Determine whether the given derived requirement \c source, when rooted at
1001996
/// the potential archetype \c pa, is actually derived from the same
1002997
/// requirement. Such "self-derived" requirements do not make the original

lib/AST/GenericSignatureBuilder.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -230,29 +230,6 @@ bool RequirementSource::isDerivedRequirement() const {
230230
llvm_unreachable("Unhandled RequirementSourceKind in switch.");
231231
}
232232

233-
bool RequirementSource::isDerivedViaConcreteConformance() const {
234-
for (auto source = this; source; source = source->parent) {
235-
switch (source->kind) {
236-
case Explicit:
237-
case Inferred:
238-
case NestedTypeNameMatch:
239-
case RequirementSignatureSelf:
240-
return false;
241-
242-
case Parent:
243-
case ProtocolRequirement:
244-
case InferredProtocolRequirement:
245-
continue;
246-
247-
case Superclass:
248-
case Concrete:
249-
return true;
250-
}
251-
}
252-
253-
return false;
254-
}
255-
256233
bool RequirementSource::isSelfDerivedSource(PotentialArchetype *pa,
257234
bool &derivedViaConcrete) const {
258235
derivedViaConcrete = false;

0 commit comments

Comments
 (0)