From be42d97315af9b5783bce02e41ea0b1e5624e162 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Mon, 1 May 2023 18:04:18 +0200 Subject: [PATCH] mac-syphon: Remove macOS 10.15-only code The minimum version of macOS for OBS is 11.0 now, so this can be removed --- plugins/mac-syphon/syphon.m | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/plugins/mac-syphon/syphon.m b/plugins/mac-syphon/syphon.m index 41a305acd..2a882f929 100644 --- a/plugins/mac-syphon/syphon.m +++ b/plugins/mac-syphon/syphon.m @@ -549,25 +549,14 @@ static void show_syphon_license_internal(void) NSWorkspace *ws = [NSWorkspace sharedWorkspace]; -#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 110000 - if (@available(macOS 11.0, *)) { - NSURL *url = [NSURL - URLWithString: - [@"file://" - stringByAppendingString: - [NSString - stringWithCString:path - encoding:NSUTF8StringEncoding]]]; - [ws openURL:url]; - } else { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - [ws openFile:@(path)]; -#pragma clang diagnostic pop - } -#else - [ws openFile:@(path)]; -#endif + NSURL *url = [NSURL + URLWithString: + [@"file://" + stringByAppendingString: + [NSString + stringWithCString:path + encoding:NSUTF8StringEncoding]]]; + [ws openURL:url]; bfree(path); }