Skip to content

Commit aba149a

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

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
@@ -1452,26 +1452,11 @@ class ParameterTypeFlags {
14521452
: value - ParameterTypeFlags::Shared);
14531453
}
14541454

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

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

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

0 commit comments

Comments
 (0)