mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-10 06:27:15 +00:00
Clean up actionForLayer:forKey: (#3063)
This commit is contained in:
parent
6a9781f64c
commit
1d21c0bd55
@ -2245,7 +2245,7 @@ static const char *ASDisplayNodeDrawingPriorityKey = "ASDrawingPriority";
|
|||||||
|
|
||||||
#pragma mark <CALayerDelegate>
|
#pragma mark <CALayerDelegate>
|
||||||
|
|
||||||
// We are only the delegate for the layer when we are layer-backed, as UIView performs this funcition normally
|
// We are only the delegate for the layer when we are layer-backed, as UIView performs this function normally
|
||||||
- (id<CAAction>)actionForLayer:(CALayer *)layer forKey:(NSString *)event
|
- (id<CAAction>)actionForLayer:(CALayer *)layer forKey:(NSString *)event
|
||||||
{
|
{
|
||||||
if (event == kCAOnOrderIn) {
|
if (event == kCAOnOrderIn) {
|
||||||
@ -2254,8 +2254,8 @@ static const char *ASDisplayNodeDrawingPriorityKey = "ASDrawingPriority";
|
|||||||
[self __exitHierarchy];
|
[self __exitHierarchy];
|
||||||
}
|
}
|
||||||
|
|
||||||
ASDisplayNodeAssert(_flags.layerBacked, @"We shouldn't get called back here if there is no layer");
|
ASDisplayNodeAssert(_flags.layerBacked, @"We shouldn't get called back here unless we are layer-backed.");
|
||||||
return (id)kCFNull;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - Error Handling
|
#pragma mark - Error Handling
|
||||||
|
Loading…
x
Reference in New Issue
Block a user