[Cocoa] reduce unnecessary use of .mm source files in WTF, spruce up some implementat...
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Jun 2018 04:18:27 +0000 (04:18 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Jun 2018 04:18:27 +0000 (04:18 +0000)
commit5cb2ad464607851190e0b4192775ceb216b36c38
tree5fb87fd4c6918a7e96bfe7b4a181ff6f3141d431
parent3e5a5743edbff66fe9f85b4406a1dde6beae2f0c
[Cocoa] reduce unnecessary use of .mm source files in WTF, spruce up some implementation details
https://bugs.webkit.org/show_bug.cgi?id=186924

Reviewed by Anders Carlsson.

* WTF.xcodeproj/project.pbxproj: Update for file and directory renames, file type changes,
and deletions.

* wtf/MemoryPressureHandler.cpp:
(WTF::MemoryPressureHandler::holdOff): Deleted empty placeholder; this one is not needed.

* wtf/PlatformMac.cmake: Update for file and directory renames, file type changes,
and deletions.

* wtf/cocoa/CPUTimeCocoa.cpp: Renamed from Source/WTF/wtf/cocoa/CPUTimeCocoa.mm.
Reworked math to make better use of the Seconds class.

* wtf/text/WTFString.h: Added a new inline version of the constructor that takes an NSString.
This is identical to the one that takes a CFStringRef, so no need to keep both.

* wtf/text/cocoa/StringImplCocoa.mm: Renamed from Source/WTF/wtf/text/mac/StringImplMac.mm.
Also removed an unneeded include.

* wtf/text/cocoa/StringViewCocoa.mm: Renamed from Source/WTF/wtf/text/mac/StringViewObjC.mm.

* wtf/text/cocoa/TextBreakIteratorInternalICUCocoa.cpp: Renamed from
Source/WTF/wtf/text/mac/TextBreakIteratorInternalICUMac.mm.

* wtf/text/mac/StringMac.mm: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233120 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/WTF.xcodeproj/project.pbxproj
Source/WTF/wtf/MemoryPressureHandler.cpp
Source/WTF/wtf/PlatformMac.cmake
Source/WTF/wtf/cocoa/CPUTimeCocoa.cpp [moved from Source/WTF/wtf/cocoa/CPUTimeCocoa.mm with 62% similarity]
Source/WTF/wtf/text/WTFString.h
Source/WTF/wtf/text/cocoa/StringImplCocoa.mm [moved from Source/WTF/wtf/text/mac/StringImplMac.mm with 97% similarity]
Source/WTF/wtf/text/cocoa/StringViewCocoa.mm [moved from Source/WTF/wtf/text/mac/StringViewObjC.mm with 100% similarity]
Source/WTF/wtf/text/cocoa/TextBreakIteratorInternalICUCocoa.cpp [moved from Source/WTF/wtf/text/mac/TextBreakIteratorInternalICUMac.mm with 100% similarity]
Source/WTF/wtf/text/mac/StringMac.mm [deleted file]