Skip to content

Commit

Permalink
Move those functions under the ASSERTIONS_ENABLED check
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai-Holler committed May 11, 2017
1 parent b2b717d commit d8c81ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/ASDisplayNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ BOOL ASDisplayNodeNeedsSpecialPropertiesHandling(BOOL isSynchronous, BOOL isLaye
return result;
}

#if ASDISPLAYNODE_ASSERTIONS_ENABLED

/**
* Returns ASDisplayNodeFlags for the given class/instance. instance MAY BE NIL.
*
Expand Down Expand Up @@ -188,7 +190,6 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
return overrides;
}

#if ASDISPLAYNODE_ASSERTIONS_ENABLED
+ (void)initialize
{
if (self != [ASDisplayNode class]) {
Expand Down

0 comments on commit d8c81ad

Please sign in to comment.