Cleanup: Remove unused code
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
25d6f6ea7c
commit
9cc0b8be8d
2 changed files with 1 additions and 11 deletions
|
@ -20,6 +20,4 @@
|
||||||
@property(strong) IBOutlet MASShortcutView *seekBkwdShortcutView;
|
@property(strong) IBOutlet MASShortcutView *seekBkwdShortcutView;
|
||||||
@property(strong) IBOutlet MASShortcutView *seekFwdShortcutView;
|
@property(strong) IBOutlet MASShortcutView *seekFwdShortcutView;
|
||||||
|
|
||||||
- (IBAction)resetToDefaultShortcuts:(id)sender;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -9,14 +9,10 @@
|
||||||
#import "HotKeyPane.h"
|
#import "HotKeyPane.h"
|
||||||
#import "Shortcuts.h"
|
#import "Shortcuts.h"
|
||||||
|
|
||||||
@implementation HotKeyPane {
|
@implementation HotKeyPane
|
||||||
NSUserDefaultsController *defaultsController;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Defaults have been moved to AppController.m
|
// Defaults have been moved to AppController.m
|
||||||
- (void)awakeFromNib {
|
- (void)awakeFromNib {
|
||||||
defaultsController = [NSUserDefaultsController sharedUserDefaultsController];
|
|
||||||
|
|
||||||
_playShortcutView.associatedUserDefaultsKey = CogPlayShortcutKey;
|
_playShortcutView.associatedUserDefaultsKey = CogPlayShortcutKey;
|
||||||
_nextShortcutView.associatedUserDefaultsKey = CogNextShortcutKey;
|
_nextShortcutView.associatedUserDefaultsKey = CogNextShortcutKey;
|
||||||
_prevShortcutView.associatedUserDefaultsKey = CogPrevShortcutKey;
|
_prevShortcutView.associatedUserDefaultsKey = CogPrevShortcutKey;
|
||||||
|
@ -36,8 +32,4 @@
|
||||||
return [[NSImage alloc] initWithContentsOfFile:[[NSBundle bundleForClass:[self class]] pathForImageResource:@"hot_keys"]];
|
return [[NSImage alloc] initWithContentsOfFile:[[NSBundle bundleForClass:[self class]] pathForImageResource:@"hot_keys"]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)resetToDefaultShortcuts:(id)sender {
|
|
||||||
[defaultsController revertToInitialValues:sender];
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in a new issue