File tree Expand file tree Collapse file tree 3 files changed +0
-26
lines changed Expand file tree Collapse file tree 3 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -353,8 +353,6 @@ class CanType : public Type {
353
353
static bool isAnyExistentialTypeImpl (CanType type);
354
354
static void getExistentialTypeProtocolsImpl (CanType type,
355
355
SmallVectorImpl<ProtocolDecl*> &protocols);
356
- static void getAnyExistentialTypeProtocolsImpl (CanType type,
357
- SmallVectorImpl<ProtocolDecl*> &protocols);
358
356
static bool isObjCExistentialTypeImpl (CanType type);
359
357
static CanType getAnyOptionalObjectTypeImpl (CanType type,
360
358
OptionalTypeKind &kind);
@@ -413,11 +411,6 @@ class CanType : public Type {
413
411
void getExistentialTypeProtocols (
414
412
SmallVectorImpl<ProtocolDecl *> &protocols);
415
413
416
- // / Given that this type is any kind of existential, return its
417
- // / protocols in a canonical order.
418
- void getAnyExistentialTypeProtocols (
419
- SmallVectorImpl<ProtocolDecl *> &protocols);
420
-
421
414
// / Break an existential down into a set of constraints.
422
415
ExistentialLayout getExistentialLayout ();
423
416
Original file line number Diff line number Diff line change @@ -590,10 +590,6 @@ class alignas(1 << TypeAlignInBits) TypeBase {
590
590
// / its list of protocols.
591
591
void getExistentialTypeProtocols (SmallVectorImpl<ProtocolDecl *> &protocols);
592
592
593
- // / Given that this type is any kind of existential type, produce
594
- // / its list of protocols.
595
- void getAnyExistentialTypeProtocols (SmallVectorImpl<ProtocolDecl *> &protocols);
596
-
597
593
// / Break an existential down into a set of constraints.
598
594
ExistentialLayout getExistentialLayout ();
599
595
Original file line number Diff line number Diff line change @@ -213,11 +213,6 @@ void TypeBase::getExistentialTypeProtocols(
213
213
getCanonicalType ().getExistentialTypeProtocols (protocols);
214
214
}
215
215
216
- void TypeBase::getAnyExistentialTypeProtocols (
217
- SmallVectorImpl<ProtocolDecl*> &protocols) {
218
- getCanonicalType ().getAnyExistentialTypeProtocols (protocols);
219
- }
220
-
221
216
void CanType::getExistentialTypeProtocols (
222
217
SmallVectorImpl<ProtocolDecl*> &protocols) {
223
218
// FIXME: Remove this completely
@@ -229,16 +224,6 @@ void CanType::getExistentialTypeProtocols(
229
224
protocols.push_back (proto->getDecl ());
230
225
}
231
226
232
- void CanType::getAnyExistentialTypeProtocols (
233
- SmallVectorImpl<ProtocolDecl*> &protocols) {
234
- if (auto metatype = dyn_cast<ExistentialMetatypeType>(*this )) {
235
- metatype.getInstanceType ().getAnyExistentialTypeProtocols (protocols);
236
- return ;
237
- }
238
-
239
- getExistentialTypeProtocols (protocols);
240
- }
241
-
242
227
ExistentialLayout::ExistentialLayout (ProtocolType *type) {
243
228
assert (type->isCanonical ());
244
229
You can’t perform that action at this time.
0 commit comments