From 9cc0b8be8d0b4bb44931d6dee5f82caefc478afc Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 7 Mar 2025 04:38:04 -0800 Subject: [PATCH] Cleanup: Remove unused code Signed-off-by: Christopher Snowhill --- Preferences/Preferences/HotKeyPane.h | 2 -- Preferences/Preferences/HotKeyPane.m | 10 +--------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Preferences/Preferences/HotKeyPane.h b/Preferences/Preferences/HotKeyPane.h index 777889872..61656758c 100644 --- a/Preferences/Preferences/HotKeyPane.h +++ b/Preferences/Preferences/HotKeyPane.h @@ -20,6 +20,4 @@ @property(strong) IBOutlet MASShortcutView *seekBkwdShortcutView; @property(strong) IBOutlet MASShortcutView *seekFwdShortcutView; -- (IBAction)resetToDefaultShortcuts:(id)sender; - @end diff --git a/Preferences/Preferences/HotKeyPane.m b/Preferences/Preferences/HotKeyPane.m index f747d55e8..ed7eb39b2 100644 --- a/Preferences/Preferences/HotKeyPane.m +++ b/Preferences/Preferences/HotKeyPane.m @@ -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