File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,6 @@ class ProtocolConformanceRef {
86
86
// / Return the protocol requirement.
87
87
ProtocolDecl *getRequirement () const ;
88
88
89
- // / Get the inherited conformance corresponding to the given protocol.
90
- // / Returns `this` if `parent` is already the same as the protocol this
91
- // / conformance represents.
92
- ProtocolConformanceRef getInherited (ProtocolDecl *parent) const ;
93
-
94
89
// / Apply a substitution to the conforming type.
95
90
ProtocolConformanceRef subst (Type origType,
96
91
TypeSubstitutionFn subs,
Original file line number Diff line number Diff line change @@ -77,30 +77,6 @@ ProtocolDecl *ProtocolConformanceRef::getRequirement() const {
77
77
}
78
78
}
79
79
80
- ProtocolConformanceRef
81
- ProtocolConformanceRef::getInherited (ProtocolDecl *parent) const {
82
- assert ((getRequirement () == parent ||
83
- getRequirement ()->inheritsFrom (parent)) &&
84
- " not a parent of this protocol" );
85
-
86
- if (parent == getRequirement ())
87
- return *this ;
88
-
89
- // For an abstract requirement, simply produce a new abstract requirement
90
- // for the parent.
91
- if (isAbstract ()) {
92
- return ProtocolConformanceRef (parent);
93
- }
94
-
95
- // Navigate concrete conformances.
96
- if (isConcrete ()) {
97
- return ProtocolConformanceRef (
98
- getConcrete ()->getInheritedConformance (parent));
99
- }
100
-
101
- llvm_unreachable (" unhandled ProtocolConformanceRef" );
102
- }
103
-
104
80
ProtocolConformanceRef
105
81
ProtocolConformanceRef::subst (Type origType,
106
82
TypeSubstitutionFn subs,
You can’t perform that action at this time.
0 commit comments