summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_menubar.m
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2023-11-09 18:57:41 +0100
committerDudemanguy <random342@airmail.cc>2023-11-09 18:12:25 +0000
commit23de1deaaaace05bb9504567a852ac66e76a1ad1 (patch)
tree34569c067e22eaf0a6464ca3af0c412f394073ed /osdep/macosx_menubar.m
parenta5bf211e128b4fb916edcf5f46bd23d3ff222711 (diff)
downloadmpv-23de1deaaaace05bb9504567a852ac66e76a1ad1.tar.bz2
mpv-23de1deaaaace05bb9504567a852ac66e76a1ad1.tar.xz
mac: remove runtime checks and compatibility for macOS older than 10.15
we stopped supporting macOS older than 10.15 and hence can remove all the unnecessary runtime checks and compatibility layers.
Diffstat (limited to 'osdep/macosx_menubar.m')
-rw-r--r--osdep/macosx_menubar.m8
1 files changed, 2 insertions, 6 deletions
diff --git a/osdep/macosx_menubar.m b/osdep/macosx_menubar.m
index c8255dd037..d9ee159d8a 100644
--- a/osdep/macosx_menubar.m
+++ b/osdep/macosx_menubar.m
@@ -20,7 +20,6 @@
#import "macosx_menubar_objc.h"
#import "osdep/macosx_application_objc.h"
-#include "osdep/macosx_compat.h"
@implementation MenuBar
{
@@ -34,9 +33,7 @@
[userDefaults setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];
[userDefaults setBool:YES forKey:@"NSDisabledDictationMenuItem"];
[userDefaults setBool:YES forKey:@"NSDisabledCharacterPaletteMenuItem"];
-
- if ([NSWindow respondsToSelector:@selector(setAllowsAutomaticWindowTabbing:)])
- [NSWindow setAllowsAutomaticWindowTabbing: NO];
+ [NSWindow setAllowsAutomaticWindowTabbing: NO];
menuTree = @[
@{
@@ -640,8 +637,7 @@
#if HAVE_MACOS_TOUCHBAR
if ([action isEqual:@"toggleTouchBarCustomizationPalette:"]) {
- if (![NSApp respondsToSelector:@selector(touchBar)])
- continue;
+ continue;
}
#endif