Skip to content

Commit fbd502a

Browse files
committed
[AST] NFC: Remote unused accessor methods from ParameterTypeFlags
1 parent 0685106 commit fbd502a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

include/swift/AST/Types.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,26 +1451,11 @@ class ParameterTypeFlags {
14511451
: value - ParameterTypeFlags::Shared);
14521452
}
14531453

1454-
ParameterTypeFlags withAutoClosure(bool isAutoClosure) const {
1455-
return ParameterTypeFlags(isAutoClosure
1456-
? value | ParameterTypeFlags::AutoClosure
1457-
: value - ParameterTypeFlags::AutoClosure);
1458-
}
1459-
14601454
bool operator ==(const ParameterTypeFlags &other) const {
14611455
return value.toRaw() == other.value.toRaw();
14621456
}
14631457

14641458
uint8_t toRaw() const { return value.toRaw(); }
1465-
1466-
static ParameterTypeFlags fromRaw(uint8_t value) {
1467-
return ParameterTypeFlags()
1468-
.withVariadic(value & Variadic)
1469-
.withAutoClosure(value & AutoClosure)
1470-
.withEscaping(value & Escaping)
1471-
.withInOut(value & InOut)
1472-
.withShared(value & Shared);
1473-
}
14741459
};
14751460

14761461
/// ParenType - A paren type is a type that's been written in parentheses.

0 commit comments

Comments
 (0)