From bde46d2295457eeb678f7791c59e79913f7c449c Mon Sep 17 00:00:00 2001 From: Stuart Connolly Date: Wed, 22 Mar 2017 01:32:23 +0000 Subject: Remove redundant code and associated warning. No longer required after c4e9a4b. --- Source/SPConnectionController.m | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'Source/SPConnectionController.m') diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 9a8f9e2e..f1968af6 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -1590,7 +1590,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, // If this node only has one child and it's not another group node, don't bother proceeding if (([nodes count] == 1) && (![[nodes objectAtIndex:0] isGroup])) { [nodes release]; - return; + return; } for (SPTreeNode *treeNode in nodes) @@ -1599,19 +1599,6 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, [self _sortTreeNode:treeNode usingKey:key]; } } -#warning What is this supposed to do? We create an empty indexset, iterate it (still empty) and release it again!? - NSMutableIndexSet *indexes = [[NSMutableIndexSet alloc] init]; - - NSUInteger i = [indexes lastIndex]; - - while (i != NSNotFound) - { - [nodes removeObjectAtIndex:i]; - - i = [indexes indexLessThanIndex:i]; - } - - [indexes release]; [nodes sortUsingFunction:_compareFavoritesUsingKey context:key]; -- cgit v1.2.3