File tree Expand file tree Collapse file tree 3 files changed +0
-27
lines changed Expand file tree Collapse file tree 3 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -351,8 +351,6 @@ class CanType : public Type {
351
351
static bool isReferenceTypeImpl (CanType type, bool functionsCount);
352
352
static bool isExistentialTypeImpl (CanType type);
353
353
static bool isAnyExistentialTypeImpl (CanType type);
354
- static void getExistentialTypeProtocolsImpl (CanType type,
355
- SmallVectorImpl<ProtocolDecl*> &protocols);
356
354
static bool isObjCExistentialTypeImpl (CanType type);
357
355
static CanType getAnyOptionalObjectTypeImpl (CanType type,
358
356
OptionalTypeKind &kind);
@@ -406,11 +404,6 @@ class CanType : public Type {
406
404
return isAnyExistentialTypeImpl (*this );
407
405
}
408
406
409
- // / Given that this type is an existential, return its
410
- // / protocols in a canonical order.
411
- void getExistentialTypeProtocols (
412
- SmallVectorImpl<ProtocolDecl *> &protocols);
413
-
414
407
// / Break an existential down into a set of constraints.
415
408
ExistentialLayout getExistentialLayout ();
416
409
Original file line number Diff line number Diff line change @@ -586,10 +586,6 @@ class alignas(1 << TypeAlignInBits) TypeBase {
586
586
// / bound.
587
587
bool isClassExistentialType ();
588
588
589
- // / Given that this type is an existential type, produce
590
- // / its list of protocols.
591
- void getExistentialTypeProtocols (SmallVectorImpl<ProtocolDecl *> &protocols);
592
-
593
589
// / Break an existential down into a set of constraints.
594
590
ExistentialLayout getExistentialLayout ();
595
591
Original file line number Diff line number Diff line change @@ -208,22 +208,6 @@ bool TypeBase::allowsOwnership() {
208
208
return getCanonicalType ().isAnyClassReferenceType ();
209
209
}
210
210
211
- void TypeBase::getExistentialTypeProtocols (
212
- SmallVectorImpl<ProtocolDecl*> &protocols) {
213
- getCanonicalType ().getExistentialTypeProtocols (protocols);
214
- }
215
-
216
- void CanType::getExistentialTypeProtocols (
217
- SmallVectorImpl<ProtocolDecl*> &protocols) {
218
- // FIXME: Remove this completely
219
- auto layout = getExistentialLayout ();
220
- assert (!layout.superclass && " Subclass existentials not fully supported yet" );
221
- assert ((!layout.requiresClass || layout.requiresClassImplied ) &&
222
- " Explicit AnyObject should not appear yet" );
223
- for (auto proto : layout.getProtocols ())
224
- protocols.push_back (proto->getDecl ());
225
- }
226
-
227
211
ExistentialLayout::ExistentialLayout (ProtocolType *type) {
228
212
assert (type->isCanonical ());
229
213
You can’t perform that action at this time.
0 commit comments