File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -651,11 +651,6 @@ class alignas(1 << TypeAlignInBits) TypeBase {
651
651
return getRecursiveProperties ().hasDependentMember ();
652
652
}
653
653
654
- // / Check if this type is a valid type for the LHS of an assignment.
655
- // / This mainly means hasLValueType(), but empty tuples and tuples of empty
656
- // / tuples also qualify.
657
- bool isAssignableType ();
658
-
659
654
// / isExistentialType - Determines whether this type is an existential type,
660
655
// / whose real (runtime) type is unknown but which is known to conform to
661
656
// / some set of protocols. Protocol and protocol-conformance types are
Original file line number Diff line number Diff line change @@ -543,19 +543,6 @@ bool TypeBase::isBool() {
543
543
return false ;
544
544
}
545
545
546
-
547
- bool TypeBase::isAssignableType () {
548
- if (hasLValueType ()) return true ;
549
- if (auto tuple = getAs<TupleType>()) {
550
- for (auto eltType : tuple->getElementTypes ()) {
551
- if (!eltType->isAssignableType ())
552
- return false ;
553
- }
554
- return true ;
555
- }
556
- return false ;
557
- }
558
-
559
546
Type TypeBase::getRValueType () {
560
547
// If the type is not an lvalue, this is a no-op.
561
548
if (!hasLValueType ())
You can’t perform that action at this time.
0 commit comments