From 1aa960ab2b015566d1060f00644435b466225fb7 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 22 Jul 2020 07:19:56 +0300 Subject: Cleanup --- src/ui/macos.m | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'src/ui/macos.m') diff --git a/src/ui/macos.m b/src/ui/macos.m index 73e17a4c..65cd0c90 100644 --- a/src/ui/macos.m +++ b/src/ui/macos.m @@ -34,9 +34,6 @@ static NSTouchBarItemIdentifier tremoloEvent_TouchId_ = @"fi.skyjake.Bitwi enum iTouchBarVariant { default_TouchBarVariant, - sequence_TouchBarVariant, - tracker_TouchBarVariant, - wide_TouchBarVariant, }; @interface CommandButton : NSButtonTouchBarItem { @@ -136,10 +133,10 @@ enum iTouchBarVariant { [sdlDelegate applicationDidFinishLaunching:notification]; } +#if 0 - (NSTouchBar *)makeTouchBar { NSTouchBar *bar = [[NSTouchBar alloc] init]; bar.delegate = self; -#if 0 switch (touchBarVariant) { case default_TouchBarVariant: bar.defaultItemIdentifiers = @[ play_TouchId_, restart_TouchId_, @@ -175,17 +172,9 @@ enum iTouchBarVariant { NSTouchBarItemIdentifierOtherItemsProxy ]; break; } -#endif return bar; } - -- (void)playPressed { - postCommand_App("playback.toggle"); -} - -- (void)restartPressed { - postCommand_App("playback.restart"); -} +#endif - (void)showPreferences { postCommand_App("preferences"); @@ -415,6 +404,7 @@ void insertMenuItems_MacOS(const char *menuLabel, const iMenuItem *items, size_t } void handleCommand_MacOS(const char *cmd) { +#if 0 if (equal_Command(cmd, "tabs.changed")) { MyDelegate *myDel = (MyDelegate *) [[NSApplication sharedApplication] delegate]; const char *tabId = valuePtr_Command(cmd, "id"); @@ -431,4 +421,5 @@ void handleCommand_MacOS(const char *cmd) { [myDel setTouchBarVariant:default_TouchBarVariant]; } } +#endif } -- cgit v1.2.3