Bug 211383

Summary: [Cocoa] Remove a few unneeded __IPHONE_OS_VERSION_MIN_REQUIRED checks
Product: WebKit Reporter: Darin Adler <darin>
Component: New BugsAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ap: review+

Description Darin Adler 2020-05-04 09:03:51 PDT
[Cocoa] Remove a few unneeded __IPHONE_OS_VERSION_MIN_REQUIRED checks
Comment 1 Darin Adler 2020-05-04 09:05:45 PDT
Created attachment 398373 [details]
Patch
Comment 2 Alexey Proskuryakov 2020-05-04 16:32:37 PDT
Comment on attachment 398373 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=398373&action=review

> Tools/TestWebKitAPI/Tests/WebCore/cocoa/AVFoundationSoftLinkTest.mm:151
> +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || PLATFORM(IOS) || PLATFORM(WATCHOS) || PLATFORM(APPLETV)

This check can be removed now, 10.14 is the oldest supported version for macOS.

> Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:6534
>  #if __IPHONE_OS_VERSION_MIN_REQUIRED > 130400

This can be removed too. We are 13.4+ now.
Comment 3 Darin Adler 2020-05-04 17:33:55 PDT
All right. I have some more patches coming up removing even more version checks.
Comment 4 Darin Adler 2020-05-04 18:01:32 PDT
Comment on attachment 398373 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=398373&action=review

>> Tools/TestWebKitAPI/Tests/WebCore/cocoa/AVFoundationSoftLinkTest.mm:151
>> +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || PLATFORM(IOS) || PLATFORM(WATCHOS) || PLATFORM(APPLETV)
> 
> This check can be removed now, 10.14 is the oldest supported version for macOS.

OK, will do.

>> Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:6534
>>  #if __IPHONE_OS_VERSION_MIN_REQUIRED > 130400
> 
> This can be removed too. We are 13.4+ now.

Are you sure? This says > 130400, not >= 130400.
Comment 5 Darin Adler 2020-05-04 18:03:16 PDT
Committed r261134: <https://trac.webkit.org/changeset/261134>
Comment 6 Radar WebKit Bug Importer 2020-05-04 18:04:18 PDT
<rdar://problem/62870095>