aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStuart Connolly <stuart02@gmail.com>2017-03-22 01:32:23 +0000
committerStuart Connolly <stuart02@gmail.com>2017-03-22 01:32:23 +0000
commitbde46d2295457eeb678f7791c59e79913f7c449c (patch)
treecae08ab11b5cde5e139683a23d7dada46444634e /Source
parent9ed7fd72477a52a9fcfd9401332bff93f7cc1c4a (diff)
downloadsequelpro-bde46d2295457eeb678f7791c59e79913f7c449c.tar.gz
sequelpro-bde46d2295457eeb678f7791c59e79913f7c449c.tar.bz2
sequelpro-bde46d2295457eeb678f7791c59e79913f7c449c.zip
Remove redundant code and associated warning. No longer required after c4e9a4b.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConnectionController.m15
1 files changed, 1 insertions, 14 deletions
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];