- Use modern Objective-C syntax.

-  Simplify comparisons.
-  Remove dead stores.
This commit is contained in:
Eric Jensen
2016-03-15 22:34:29 -07:00
parent f97a509541
commit 33fda7ab49
25 changed files with 55 additions and 74 deletions

View File

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