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:
Huy Nguyen
2015-10-26 07:40:54 +02:00
parent 53a3b76d6d
commit b77522bf4f
2 changed files with 1 additions and 8 deletions

View File

@@ -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;
{

View File

@@ -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;
}