mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-27 01:08:26 +00:00
Remove debugging names of ASDisplayNode and _ASDisplayLayer
- They are neither considered internally nor in tests. And when they are accidently considered, they cause tests to fail. - Developers can easily set debugging names themselves whenever needed.
This commit is contained in:
@@ -460,9 +460,7 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
|
||||
_layer = _view.layer;
|
||||
}
|
||||
_layer.asyncdisplaykit_node = self;
|
||||
#if DEBUG
|
||||
_layer.name = self.description;
|
||||
#endif
|
||||
|
||||
self.asyncLayer.asyncDelegate = self;
|
||||
|
||||
{
|
||||
|
||||
@@ -36,11 +36,6 @@
|
||||
_displaySentinel = [[ASSentinel alloc] init];
|
||||
|
||||
self.opaque = YES;
|
||||
|
||||
#if DEBUG
|
||||
// This is too expensive to do in production on all layers.
|
||||
self.name = [NSString stringWithFormat:@"%@ (%p)", NSStringFromClass([self class]), self];
|
||||
#endif
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user