From 71eec7d86ab1917cfbdf60d84e15f46920099428 Mon Sep 17 00:00:00 2001 From: michael starke Date: Thu, 19 Sep 2013 00:19:42 +0200 Subject: [PATCH] Removed obsolete code --- MacPass/MPAttachmentTableDataSource.m | 1 - MacPass/MPOutlineViewController.m | 16 +--------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/MacPass/MPAttachmentTableDataSource.m b/MacPass/MPAttachmentTableDataSource.m index c1d40a7e..49e86964 100644 --- a/MacPass/MPAttachmentTableDataSource.m +++ b/MacPass/MPAttachmentTableDataSource.m @@ -34,7 +34,6 @@ if(numberOfDirectories == [arrayOfURLs count]) { return NSDragOperationNone; } - row = [tableView numberOfRows]; return NSDragOperationCopy; } diff --git a/MacPass/MPOutlineViewController.m b/MacPass/MPOutlineViewController.m index 0f5e4bad..1f061a64 100644 --- a/MacPass/MPOutlineViewController.m +++ b/MacPass/MPOutlineViewController.m @@ -132,7 +132,7 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell"; #pragma mark Notifications - (void)setupNotifications:(MPDocumentWindowController *)windowController { - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_didCreateGroup:) name:MPDocumentDidAddGroupNotification object:[windowController document]]; + // Nothing to do anymore } - (void)clearSelection { @@ -140,20 +140,6 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell"; [self outlineViewSelectionDidChange:nil]; } -- (void)_didCreateGroup:(NSNotification *)notification { - NSInteger selectedRow = [_outlineView selectedRow]; - NSIndexSet *indexSet; - if( selectedRow == -1) { - MPDocument *document = [[self windowController] document]; - indexSet = [NSIndexSet indexSetWithIndex:[document.root.groups count]]; - } - else { - id item = [_outlineView itemAtRow:selectedRow]; - [_outlineView expandItem:item]; - indexSet = [NSIndexSet indexSetWithIndex:selectedRow + 1]; - } -} - - (void)_didBecomeFirstResponder:(NSNotification *)notification { if( [notification object] != _outlineView ) { return; // Nothing we need to worry about