Browse Source

macOS: Remove macOS 10.13 preprocessor checks

The current minimum-supported Xcode (10.1) includes the macOS 10.14.1
SDK, so APIs from macOS 10.13 will always be available.
v7.0.9
reuk 3 years ago
parent
commit
7545fbcf3e
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
5 changed files with 0 additions and 17 deletions
  1. +0
    -2
      modules/juce_core/native/juce_mac_SystemStats.mm
  2. +0
    -7
      modules/juce_gui_basics/native/accessibility/juce_mac_Accessibility.mm
  3. +0
    -4
      modules/juce_gui_basics/native/juce_mac_MainMenu.mm
  4. +0
    -2
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm
  5. +0
    -2
      modules/juce_video/native/juce_mac_CameraDevice.h

+ 0
- 2
modules/juce_core/native/juce_mac_SystemStats.mm View File

@@ -95,14 +95,12 @@ static String getOSXVersion()
{
const String systemVersionPlist ("/System/Library/CoreServices/SystemVersion.plist");
#if defined (MAC_OS_X_VERSION_10_13) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_13
if (@available (macOS 10.13, *))
{
NSError* error = nullptr;
return [NSDictionary dictionaryWithContentsOfURL: createNSURLFromFile (systemVersionPlist)
error: &error];
}
#endif
return [NSDictionary dictionaryWithContentsOfFile: juceStringToNS (systemVersionPlist)];
}();


+ 0
- 7
modules/juce_gui_basics/native/accessibility/juce_mac_Accessibility.mm View File

@@ -29,11 +29,6 @@ static void juceFreeAccessibilityPlatformSpecificData (NSAccessibilityElement<NS
namespace juce
{
#if ! defined (MAC_OS_X_VERSION_10_13) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_13
using NSAccessibilityRole = NSString*;
using NSAccessibilityNotificationName = NSString*;
#endif
#define JUCE_NATIVE_ACCESSIBILITY_INCLUDED 1
//==============================================================================
@@ -717,9 +712,7 @@ private:
return NO;
});
#if defined (MAC_OS_X_VERSION_10_13) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_13
addMethod (@selector (accessibilityChildrenInNavigationOrder), getAccessibilityChildren);
#endif
registerClass();
}


+ 0
- 4
modules/juce_gui_basics/native/juce_mac_MainMenu.mm View File

@@ -293,11 +293,7 @@ public:
[item setTag: topLevelIndex];
[item setEnabled: i.isEnabled];
#if defined (MAC_OS_X_VERSION_10_13) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_13
[item setState: i.isTicked ? NSControlStateValueOn : NSControlStateValueOff];
#else
[item setState: i.isTicked ? NSOnState : NSOffState];
#endif
[item setTarget: (id) callback];
auto* juceItem = new PopupMenu::Item (i);


+ 0
- 2
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -1436,10 +1436,8 @@ public:
{
const auto type = []
{
#if defined (MAC_OS_X_VERSION_10_13) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_13
if (@available (macOS 10.13, *))
return NSPasteboardTypeFileURL;
#endif
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
return (NSString*) kUTTypeFileURL;


+ 0
- 2
modules/juce_video/native/juce_mac_CameraDevice.h View File

@@ -341,10 +341,8 @@ private:
const auto codecType = []
{
#if defined (MAC_OS_X_VERSION_10_13) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_13
if (@available (macOS 10.13, *))
return AVVideoCodecTypeJPEG;
#endif
return AVVideoCodecJPEG;
}();


Loading…
Cancel
Save