mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-26 12:55:56 +08:00
- Use modern Objective-C syntax.
- Simplify comparisons. - Remove dead stores.
This commit is contained in:
@@ -16,7 +16,5 @@
|
||||
*/
|
||||
ASDISPLAYNODE_INLINE BOOL ASObjectIsEqual(id<NSObject> obj, id<NSObject> otherObj)
|
||||
{
|
||||
if (obj == otherObj)
|
||||
return YES;
|
||||
return [obj isEqual:otherObj];
|
||||
return obj == otherObj || [obj isEqual:otherObj];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user