mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 16:22:21 +00:00
Removed obsolete code
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
if(numberOfDirectories == [arrayOfURLs count]) {
|
||||
return NSDragOperationNone;
|
||||
}
|
||||
row = [tableView numberOfRows];
|
||||
return NSDragOperationCopy;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user