Removed obsolete code

This commit is contained in:
michael starke
2013-09-19 00:19:42 +02:00
parent 61490cfb65
commit 71eec7d86a
2 changed files with 1 additions and 16 deletions

View File

@@ -34,7 +34,6 @@
if(numberOfDirectories == [arrayOfURLs count]) { if(numberOfDirectories == [arrayOfURLs count]) {
return NSDragOperationNone; return NSDragOperationNone;
} }
row = [tableView numberOfRows];
return NSDragOperationCopy; return NSDragOperationCopy;
} }

View File

@@ -132,7 +132,7 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
#pragma mark Notifications #pragma mark Notifications
- (void)setupNotifications:(MPDocumentWindowController *)windowController { - (void)setupNotifications:(MPDocumentWindowController *)windowController {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_didCreateGroup:) name:MPDocumentDidAddGroupNotification object:[windowController document]]; // Nothing to do anymore
} }
- (void)clearSelection { - (void)clearSelection {
@@ -140,20 +140,6 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
[self outlineViewSelectionDidChange:nil]; [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 { - (void)_didBecomeFirstResponder:(NSNotification *)notification {
if( [notification object] != _outlineView ) { if( [notification object] != _outlineView ) {
return; // Nothing we need to worry about return; // Nothing we need to worry about