@@ -499,39 +499,6 @@ AbstractionPattern::getObjCMethodFormalParamPattern(CanType inputType) const {
499
499
method->parameters ()[paramIndex]->getType ().getTypePtr ());
500
500
}
501
501
502
- AbstractionPattern AbstractionPattern::getWithoutSpecifierType () const {
503
- switch (getKind ()) {
504
- case Kind::Invalid:
505
- llvm_unreachable (" querying invalid abstraction pattern!" );
506
- case Kind::Tuple:
507
- case Kind::ClangFunctionParamTupleType:
508
- case Kind::PartialCurriedObjCMethodType:
509
- case Kind::CurriedObjCMethodType:
510
- case Kind::CFunctionAsMethodType:
511
- case Kind::CFunctionAsMethodParamTupleType:
512
- case Kind::CurriedCFunctionAsMethodType:
513
- case Kind::PartialCurriedCFunctionAsMethodType:
514
- case Kind::ObjCMethodType:
515
- case Kind::ObjCMethodParamTupleType:
516
- case Kind::ObjCMethodFormalParamTupleType:
517
- case Kind::CFunctionAsMethodFormalParamTupleType:
518
- llvm_unreachable (" abstraction pattern for lvalue cannot be tuple" );
519
- case Kind::Opaque:
520
- return *this ;
521
- case Kind::Type:
522
- return AbstractionPattern (getGenericSignature (),
523
- getType ().getWithoutSpecifierType ());
524
- case Kind::Discard:
525
- return AbstractionPattern::getDiscard (getGenericSignature (),
526
- getType ().getWithoutSpecifierType ());
527
- case Kind::ClangType:
528
- return AbstractionPattern (getGenericSignature (),
529
- getType ().getWithoutSpecifierType (),
530
- getClangType ());
531
- }
532
- llvm_unreachable (" bad kind" );
533
- }
534
-
535
502
static CanType getResultType (CanType type) {
536
503
return cast<AnyFunctionType>(type).getResult ();
537
504
}
0 commit comments