Skip to content

Commit c0e01dc

Browse files
committed
AST: Remove AvailableAttr::getPlatform().
I can't believe it's really happening.
1 parent 51aaacc commit c0e01dc

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
@@ -792,9 +792,6 @@ class AvailableAttr : public DeclAttribute {
792792
/// Whether this attribute was spelled `@_unavailableInEmbedded`.
793793
bool isForEmbedded() const { return Bits.AvailableAttr.IsForEmbedded; }
794794

795-
/// Returns the platform that the attribute applies to (may be `none`).
796-
PlatformKind getPlatform() const { return Domain.getPlatformKind(); }
797-
798795
/// Returns the `AvailabilityDomain` associated with the attribute, or
799796
/// `std::nullopt` if it has either not yet been resolved or could not be
800797
/// 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)