File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -6785,15 +6785,6 @@ class OpenedArchetypeType final : public LocalArchetypeType,
6785
6785
ArrayRef<ProtocolDecl *> conformsTo, Type superclass,
6786
6786
LayoutConstraint layout);
6787
6787
6788
- public:
6789
- // / Compute the parameter that serves as the \c Self type for an opened
6790
- // / archetype from the given outer generic signature.
6791
- // /
6792
- // / This type is a generic parameter one level deeper
6793
- // / than the deepest generic context depth.
6794
- static Type getSelfInterfaceTypeFromContext (GenericSignature parentSig,
6795
- ASTContext &ctx);
6796
-
6797
6788
public:
6798
6789
// / Get or create an archetype that represents the opened type
6799
6790
// / of an existential value.
Original file line number Diff line number Diff line change @@ -6137,13 +6137,6 @@ CanGenericSignature ASTContext::getSingleGenericParameterSignature() const {
6137
6137
return canonicalSig;
6138
6138
}
6139
6139
6140
- Type OpenedArchetypeType::getSelfInterfaceTypeFromContext (GenericSignature parentSig,
6141
- ASTContext &ctx) {
6142
- return GenericTypeParamType::get (/* isParameterPack=*/ false ,
6143
- parentSig.getNextDepth (), /* index=*/ 0 ,
6144
- ctx);
6145
- }
6146
-
6147
6140
CanGenericSignature
6148
6141
ASTContext::getOpenedExistentialSignature (Type type, GenericSignature parentSig) {
6149
6142
assert (type->isExistentialType ());
@@ -6206,7 +6199,7 @@ ASTContext::getOpenedExistentialSignature(Type type) {
6206
6199
6207
6200
// Stash the `Self` type.
6208
6201
existentialSig.SelfType =
6209
- OpenedArchetypeType::getSelfInterfaceTypeFromContext (parentSig, * this )
6202
+ existentialSig. OpenedSig . getGenericParams (). back ( )
6210
6203
->getCanonicalType ();
6211
6204
6212
6205
// Cache the result.
You can’t perform that action at this time.
0 commit comments