Skip to content

Commit 1d47307

Browse files
committed
AST: Remove AvailableAttr::getPlatform().
I can't believe it's really happening.
1 parent 0fe4957 commit 1d47307

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

include/swift/AST/Attr.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,9 +813,6 @@ class AvailableAttr : public DeclAttribute {
813813
/// Whether this attribute was spelled `@_unavailableInEmbedded`.
814814
bool isForEmbedded() const { return Bits.AvailableAttr.IsForEmbedded; }
815815

816-
/// Returns the platform that the attribute applies to (may be `none`).
817-
PlatformKind getPlatform() const { return Domain.getPlatformKind(); }
818-
819816
/// Returns the `AvailabilityDomain` associated with the attribute, or
820817
/// `std::nullopt` if it has either not yet been resolved or could not be
821818
/// resolved successfully.

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3078,7 +3078,7 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
30783078
LIST_VER_TUPLE_PIECES(Introduced),
30793079
LIST_VER_TUPLE_PIECES(Deprecated),
30803080
LIST_VER_TUPLE_PIECES(Obsoleted),
3081-
static_cast<unsigned>(theAttr->getPlatform()),
3081+
static_cast<unsigned>(domain->getPlatformKind()),
30823082
theAttr->Message.size(),
30833083
theAttr->Rename.size(),
30843084
blob);

0 commit comments

Comments
 (0)