Skip to content

Commit 0315d62

Browse files
committed
Rename as_inverseCompare to asdk_inverseCompare for prefix consistency
1 parent 5ea4b1b commit 0315d62

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

AsyncDisplayKit/Private/ASInternalHelpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ CGFloat ASRoundPixelValue(CGFloat f);
2828
ASDISPLAYNODE_EXTERN_C_END
2929

3030
@interface NSIndexPath (ASInverseComparison)
31-
- (NSComparisonResult)as_inverseCompare:(NSIndexPath *)otherIndexPath;
31+
- (NSComparisonResult)asdk_inverseCompare:(NSIndexPath *)otherIndexPath;
3232
@end

AsyncDisplayKit/Private/ASInternalHelpers.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ CGFloat ASRoundPixelValue(CGFloat f)
7373

7474
@implementation NSIndexPath (ASInverseComparison)
7575

76-
- (NSComparisonResult)as_inverseCompare:(NSIndexPath *)otherIndexPath
76+
- (NSComparisonResult)asdk_inverseCompare:(NSIndexPath *)otherIndexPath
7777
{
7878
return [otherIndexPath compare:self];
7979
}

AsyncDisplayKit/Private/_ASHierarchyChangeSet.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ - (instancetype)initWithChangeType:(_ASHierarchyChangeType)changeType indexPaths
262262
if (presorted) {
263263
_indexPaths = indexPaths;
264264
} else {
265-
SEL sorting = changeType == _ASHierarchyChangeTypeDelete ? @selector(as_inverseCompare:) : @selector(compare:);
265+
SEL sorting = changeType == _ASHierarchyChangeTypeDelete ? @selector(asdk_inverseCompare:) : @selector(compare:);
266266
_indexPaths = [indexPaths sortedArrayUsingSelector:sorting];
267267
}
268268
_animationOptions = animationOptions;
@@ -296,7 +296,7 @@ + (void)sortAndCoalesceChanges:(NSMutableArray *)changes ignoringChangesInSectio
296296
}
297297
}
298298

299-
SEL sorting = type == _ASHierarchyChangeTypeDelete ? @selector(as_inverseCompare:) : @selector(compare:);
299+
SEL sorting = type == _ASHierarchyChangeTypeDelete ? @selector(asdk_inverseCompare:) : @selector(compare:);
300300
[allIndexPaths sortUsingSelector:sorting];
301301

302302
// Create new changes by grouping sorted changes by animation option

0 commit comments

Comments
 (0)