Remove redundant SILType::isMoveOnlyNominalType (NFC)

and implement `SILType::isPureMoveOnly` in terms of `Type::isPureMoveOnly`.
This commit is contained in:
Joe Groff
2023-08-01 13:55:53 -07:00
parent 76feb8cd95
commit 03eec7da2b
4 changed files with 17 additions and 21 deletions

View File

@@ -756,10 +756,6 @@ public:
/// deinitialization beyond destruction of its members.
bool isValueTypeWithDeinit() const;
/// Returns true if and only if this type is a first class move only
/// type. NOTE: Returns false if the type is a move only wrapped type.
bool isMoveOnlyNominalType() const;
/// Returns true if this SILType is a move only wrapper type.
///
/// Canonical way to check if a SILType is move only. Using is/getAs/castTo