mac/app: remove unused function

This commit is contained in:
der richter 2024-03-03 01:42:01 +01:00
parent 4179d58389
commit bbbd6e272c
2 changed files with 0 additions and 7 deletions

View File

@ -47,7 +47,6 @@ struct macos_opts {
// multithreaded wrapper for mpv_main
int cocoa_main(int argc, char *argv[]);
void cocoa_register_menu_item_action(MPMenuKey key, void* action);
extern const struct m_sub_options macos_conf;

View File

@ -284,12 +284,6 @@ static MP_THREAD_VOID playback_thread(void *ctx_obj)
}
}
void cocoa_register_menu_item_action(MPMenuKey key, void* action)
{
if (application_instantiated)
[[NSApp menuBar] registerSelector:(SEL)action forKey:key];
}
static void init_cocoa_application(bool regular)
{
NSApp = mpv_shared_app();