Bug 150002 - [iOS] Remove unnecessary iOS version checks
Summary: [iOS] Remove unnecessary iOS version checks
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-10 10:29 PDT by mitz
Modified: 2017-05-17 14:11 PDT (History)
4 users (show)

See Also:


Attachments
Remove redundant version checks (71.47 KB, patch)
2015-10-10 10:32 PDT, mitz
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2015-10-10 10:29:57 PDT
Some checks for the target iOS version are unnecessary.
Comment 1 mitz 2015-10-10 10:32:17 PDT
Created attachment 262829 [details]
Remove redundant version checks
Comment 2 WebKit Commit Bot 2015-10-10 10:34:07 PDT
Attachment 262829 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:8:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 48 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Alexey Proskuryakov 2015-10-10 12:53:23 PDT
Comment on attachment 262829 [details]
Remove redundant version checks

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

> Source/WebCore/loader/cocoa/DiskCacheMonitorCocoa.h:58
> +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 1090)

I suggest removing these parentheses.

> Source/WebCore/svg/SVGToOTFFontConversion.cpp:1109
> +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED <= 101000)

Ditto.

> Source/WebCore/svg/SVGToOTFFontConversion.cpp:1407
> +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED <= 101000)

Ditto.

> Source/WebKit2/Shared/ios/NativeWebTouchEventIOS.mm:105
> +#if defined UI_WEB_TOUCH_EVENT_HAS_IS_POTENTIAL_TAP && UI_WEB_TOUCH_EVENT_HAS_IS_POTENTIAL_TAP

I didn't know one could use "defined" without parentheses. I suggest adding them for consistency.

> Source/WebKit2/WebKit2.xcodeproj/project.pbxproj:318
> -		1A8B66B01BC43C860082DF77 /* PageLoadStateObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A8B66AE1BC43C860082DF77 /* PageLoadStateObserver.h */; settings = {ASSET_TAGS = (); }; };
> -		1A8B66B31BC45B010082DF77 /* WKBundleMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A8B66B11BC45B010082DF77 /* WKBundleMac.mm */; settings = {ASSET_TAGS = (); }; };
> +		1A8B66B01BC43C860082DF77 /* PageLoadStateObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A8B66AE1BC43C860082DF77 /* PageLoadStateObserver.h */; };
> +		1A8B66B31BC45B010082DF77 /* WKBundleMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A8B66B11BC45B010082DF77 /* WKBundleMac.mm */; };

Is this change intentionally part of this patch?

> Tools/WebKitTestRunner/ios/UIKitSPI.h:-48
> -- (void)_handleHIDEvent:(IOHIDEventRef)event;

Just to confirm, this was removed because it's unneeded, correct?
Comment 4 mitz 2015-10-10 13:02:25 PDT
Comment on attachment 262829 [details]
Remove redundant version checks

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

>> Source/WebKit2/Shared/ios/NativeWebTouchEventIOS.mm:105
>> +#if defined UI_WEB_TOUCH_EVENT_HAS_IS_POTENTIAL_TAP && UI_WEB_TOUCH_EVENT_HAS_IS_POTENTIAL_TAP
> 
> I didn't know one could use "defined" without parentheses. I suggest adding them for consistency.

We use both styles throughout the project.

>> Source/WebKit2/WebKit2.xcodeproj/project.pbxproj:318
>> +		1A8B66B31BC45B010082DF77 /* WKBundleMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A8B66B11BC45B010082DF77 /* WKBundleMac.mm */; };
> 
> Is this change intentionally part of this patch?

No. Some versions of Xcode added empty ASSET_TAGS arrays, other versions take them out, but this is unrelated to what this patch is about.

>> Tools/WebKitTestRunner/ios/UIKitSPI.h:-48
>> -- (void)_handleHIDEvent:(IOHIDEventRef)event;
> 
> Just to confirm, this was removed because it's unneeded, correct?

It’s unneeded, but I’ll leave it since it’s outside the scope of this patch.
Comment 5 mitz 2015-10-10 13:06:40 PDT
Committed <http://trac.webkit.org/r190841>.