86
86
int setLayoutMargins:1 ;
87
87
int setPreservesSuperviewLayoutMargins:1 ;
88
88
int setInsetsLayoutMarginsFromSafeArea:1 ;
89
- int setActions:1 ;
90
89
int setMaskedCorners : 1 ;
91
90
} ASPendingStateFlags;
92
91
93
-
94
92
static constexpr ASPendingStateFlags kZeroFlags = {0 };
95
93
96
94
@implementation _ASPendingState
@@ -145,7 +143,6 @@ @implementation _ASPendingState
145
143
CGPoint accessibilityActivationPoint;
146
144
UIBezierPath *accessibilityPath;
147
145
UISemanticContentAttribute semanticContentAttribute API_AVAILABLE (ios (9.0 ), tvos (9.0 ));
148
- NSDictionary <NSString *, id <CAAction >> *actions;
149
146
150
147
ASPendingStateFlags _flags;
151
148
}
@@ -215,7 +212,6 @@ ASDISPLAYNODE_INLINE void ASPendingStateApplyMetricsToLayer(_ASPendingState *sta
215
212
@synthesize layoutMargins=layoutMargins;
216
213
@synthesize preservesSuperviewLayoutMargins=preservesSuperviewLayoutMargins;
217
214
@synthesize insetsLayoutMarginsFromSafeArea=insetsLayoutMarginsFromSafeArea;
218
- @synthesize actions=actions;
219
215
@synthesize maskedCorners = maskedCorners;
220
216
221
217
static CGColorRef blackColorRef = NULL ;
@@ -600,12 +596,6 @@ - (void)setSemanticContentAttribute:(UISemanticContentAttribute)attribute API_AV
600
596
_flags.setSemanticContentAttribute = YES ;
601
597
}
602
598
603
- - (void )setActions : (NSDictionary <NSString *,id<CAAction >> *)actionsArg
604
- {
605
- actions = [actionsArg copy ];
606
- _flags.setActions = YES ;
607
- }
608
-
609
599
- (BOOL )isAccessibilityElement
610
600
{
611
601
return isAccessibilityElement;
@@ -943,9 +933,6 @@ - (void)applyToLayer:(CALayer *)layer
943
933
if (flags.setOpaque )
944
934
ASDisplayNodeAssert (layer.opaque == opaque, @" Didn't set opaque as desired" );
945
935
946
- if (flags.setActions )
947
- layer.actions = actions;
948
-
949
936
ASPendingStateApplyMetricsToLayer (self, layer);
950
937
951
938
if (flags.needsLayout )
@@ -965,7 +952,7 @@ - (void)applyToView:(UIView *)view withSpecialPropertiesHandling:(BOOL)specialPr
965
952
because a different setter would be called.
966
953
*/
967
954
968
- unowned CALayer *layer = view.layer ;
955
+ CALayer *layer = view.layer ;
969
956
970
957
ASPendingStateFlags flags = _flags;
971
958
if (__shouldSetNeedsDisplay (layer)) {
@@ -1008,9 +995,6 @@ - (void)applyToView:(UIView *)view withSpecialPropertiesHandling:(BOOL)specialPr
1008
995
if (flags.setRasterizationScale )
1009
996
layer.rasterizationScale = rasterizationScale;
1010
997
1011
- if (flags.setActions )
1012
- layer.actions = actions;
1013
-
1014
998
if (flags.setClipsToBounds )
1015
999
view.clipsToBounds = clipsToBounds;
1016
1000
@@ -1304,7 +1288,7 @@ + (_ASPendingState *)pendingViewStateFromView:(UIView *)view
1304
1288
1305
1289
- (void )clearChanges
1306
1290
{
1307
- _flags = kZeroFlags ;
1291
+ _flags = (ASPendingStateFlags){ 0 } ;
1308
1292
}
1309
1293
1310
1294
- (BOOL )hasSetNeedsLayout
0 commit comments