Cleanup: Remove unused code

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-07 04:38:04 -08:00
parent 25d6f6ea7c
commit 9cc0b8be8d
2 changed files with 1 additions and 11 deletions

View file

@ -20,6 +20,4 @@
@property(strong) IBOutlet MASShortcutView *seekBkwdShortcutView;
@property(strong) IBOutlet MASShortcutView *seekFwdShortcutView;
- (IBAction)resetToDefaultShortcuts:(id)sender;
@end

View file

@ -9,14 +9,10 @@
#import "HotKeyPane.h"
#import "Shortcuts.h"
@implementation HotKeyPane {
NSUserDefaultsController *defaultsController;
}
@implementation HotKeyPane
// Defaults have been moved to AppController.m
- (void)awakeFromNib {
defaultsController = [NSUserDefaultsController sharedUserDefaultsController];
_playShortcutView.associatedUserDefaultsKey = CogPlayShortcutKey;
_nextShortcutView.associatedUserDefaultsKey = CogNextShortcutKey;
_prevShortcutView.associatedUserDefaultsKey = CogPrevShortcutKey;
@ -36,8 +32,4 @@
return [[NSImage alloc] initWithContentsOfFile:[[NSBundle bundleForClass:[self class]] pathForImageResource:@"hot_keys"]];
}
- (IBAction)resetToDefaultShortcuts:(id)sender {
[defaultsController revertToInitialValues:sender];
}
@end