87
87
int setLayoutMargins:1 ;
88
88
int setPreservesSuperviewLayoutMargins:1 ;
89
89
int setInsetsLayoutMarginsFromSafeArea:1 ;
90
- int setActions:1 ;
91
90
int setMaskedCorners : 1 ;
92
91
} ASPendingStateFlags;
93
92
94
-
95
93
static constexpr ASPendingStateFlags kZeroFlags = {0 };
96
94
97
95
@implementation _ASPendingState
@@ -147,7 +145,6 @@ @implementation _ASPendingState
147
145
CGPoint accessibilityActivationPoint;
148
146
UIBezierPath *accessibilityPath;
149
147
UISemanticContentAttribute semanticContentAttribute API_AVAILABLE (ios (9.0 ), tvos (9.0 ));
150
- NSDictionary <NSString *, id <CAAction >> *actions;
151
148
152
149
ASPendingStateFlags _flags;
153
150
}
@@ -217,7 +214,6 @@ ASDISPLAYNODE_INLINE void ASPendingStateApplyMetricsToLayer(_ASPendingState *sta
217
214
@synthesize layoutMargins=layoutMargins;
218
215
@synthesize preservesSuperviewLayoutMargins=preservesSuperviewLayoutMargins;
219
216
@synthesize insetsLayoutMarginsFromSafeArea=insetsLayoutMarginsFromSafeArea;
220
- @synthesize actions=actions;
221
217
@synthesize maskedCorners = maskedCorners;
222
218
223
219
static CGColorRef blackColorRef = NULL ;
@@ -603,12 +599,6 @@ - (void)setSemanticContentAttribute:(UISemanticContentAttribute)attribute API_AV
603
599
_flags.setSemanticContentAttribute = YES ;
604
600
}
605
601
606
- - (void )setActions : (NSDictionary <NSString *,id<CAAction >> *)actionsArg
607
- {
608
- actions = [actionsArg copy ];
609
- _flags.setActions = YES ;
610
- }
611
-
612
602
- (BOOL )isAccessibilityElement
613
603
{
614
604
return isAccessibilityElement;
@@ -959,9 +949,6 @@ - (void)applyToLayer:(CALayer *)layer
959
949
if (flags.setOpaque )
960
950
ASDisplayNodeAssert (layer.opaque == opaque, @" Didn't set opaque as desired" );
961
951
962
- if (flags.setActions )
963
- layer.actions = actions;
964
-
965
952
ASPendingStateApplyMetricsToLayer (self, layer);
966
953
967
954
if (flags.needsLayout )
@@ -981,7 +968,7 @@ - (void)applyToView:(UIView *)view withSpecialPropertiesHandling:(BOOL)specialPr
981
968
because a different setter would be called.
982
969
*/
983
970
984
- unowned CALayer *layer = view.layer ;
971
+ CALayer *layer = view.layer ;
985
972
986
973
ASPendingStateFlags flags = _flags;
987
974
if (__shouldSetNeedsDisplay (layer)) {
@@ -1024,9 +1011,6 @@ - (void)applyToView:(UIView *)view withSpecialPropertiesHandling:(BOOL)specialPr
1024
1011
if (flags.setRasterizationScale )
1025
1012
layer.rasterizationScale = rasterizationScale;
1026
1013
1027
- if (flags.setActions )
1028
- layer.actions = actions;
1029
-
1030
1014
if (flags.setClipsToBounds )
1031
1015
view.clipsToBounds = clipsToBounds;
1032
1016
@@ -1323,7 +1307,7 @@ + (_ASPendingState *)pendingViewStateFromView:(UIView *)view
1323
1307
1324
1308
- (void )clearChanges
1325
1309
{
1326
- _flags = kZeroFlags ;
1310
+ _flags = (ASPendingStateFlags){ 0 } ;
1327
1311
}
1328
1312
1329
1313
- (BOOL )hasSetNeedsLayout
0 commit comments