aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDataSource.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-01-22 17:14:03 +0000
committerstuconnolly <stuart02@gmail.com>2013-01-22 17:14:03 +0000
commit9ab31cc5b60bf0e4519c989a3e9d213da50f888d (patch)
tree5e2967e092096dd830351a222cfe65d008d41fbd /Source/SPConnectionControllerDataSource.m
parente2cc9e1953a142f182714fb02d7eca028398e368 (diff)
downloadsequelpro-9ab31cc5b60bf0e4519c989a3e9d213da50f888d.tar.gz
sequelpro-9ab31cc5b60bf0e4519c989a3e9d213da50f888d.tar.bz2
sequelpro-9ab31cc5b60bf0e4519c989a3e9d213da50f888d.zip
Remove useless init and dealloc method comments and perform general tidy up.
Diffstat (limited to 'Source/SPConnectionControllerDataSource.m')
-rw-r--r--Source/SPConnectionControllerDataSource.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/SPConnectionControllerDataSource.m b/Source/SPConnectionControllerDataSource.m
index 17da21c7..daf2c3af 100644
--- a/Source/SPConnectionControllerDataSource.m
+++ b/Source/SPConnectionControllerDataSource.m
@@ -71,18 +71,17 @@
*/
- (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)childIndex ofItem:(id)item
{
-
// For the top level of the tree, return the "Quick Connect" child for position zero;
// amend all other positions to compensate for the faked position.
if (!item) {
if (childIndex == 0) {
return quickConnectItem;
}
+
childIndex--;
}
SPTreeNode *node = (item == nil ? favoritesRoot : (SPTreeNode *)item);
-
return NSArrayObjectAtIndex([node childNodes], childIndex);
}