File tree Expand file tree Collapse file tree 2 files changed +0
-36
lines changed Expand file tree Collapse file tree 2 files changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,6 @@ class ProtocolConformanceRef {
153
153
// / Get any additional requirements that are required for this conformance to
154
154
// / be satisfied.
155
155
ArrayRef<Requirement> getConditionalRequirements () const ;
156
-
157
- // / If this is a conformance reference for a protocol that inherits other
158
- // / protocols, get a reference to the related conformance for the inherited
159
- // / protocol.
160
- ProtocolConformanceRef getInheritedConformanceRef (ProtocolDecl *base) const ;
161
156
};
162
157
163
158
} // end namespace swift
Original file line number Diff line number Diff line change @@ -487,37 +487,6 @@ ProtocolConformanceRef::getConditionalRequirements() const {
487
487
return {};
488
488
}
489
489
490
- ProtocolConformanceRef
491
- ProtocolConformanceRef::getInheritedConformanceRef (ProtocolDecl *base) const {
492
- if (isAbstract ()) {
493
- assert (getRequirement ()->inheritsFrom (base));
494
- return ProtocolConformanceRef (base);
495
- }
496
-
497
- auto concrete = getConcrete ();
498
- auto proto = concrete->getProtocol ();
499
- auto path =
500
- proto->getGenericSignature ()->getConformanceAccessPath (
501
- proto->getSelfInterfaceType (), base);
502
- ProtocolConformanceRef result = *this ;
503
- Type resultType = concrete->getType ();
504
- bool first = true ;
505
- for (const auto &step : path) {
506
- if (first) {
507
- assert (step.first ->isEqual (proto->getSelfInterfaceType ()));
508
- assert (step.second == proto);
509
- first = false ;
510
- continue ;
511
- }
512
-
513
- result =
514
- result.getAssociatedConformance (resultType, step.first , step.second );
515
- resultType = result.getAssociatedType (resultType, step.first );
516
- }
517
-
518
- return result;
519
- }
520
-
521
490
void NormalProtocolConformance::differenceAndStoreConditionalRequirements ()
522
491
const {
523
492
switch (CRState) {
You can’t perform that action at this time.
0 commit comments