Title: [261448] trunk/Source/WTF
Revision
261448
Author
[email protected]
Date
2020-05-09 17:48:56 -0700 (Sat, 09 May 2020)

Log Message

Delete some dead code in WorkQueueCocoa.cpp
https://bugs.webkit.org/show_bug.cgi?id=211676

Reviewed by Chris Dumez.

* wtf/cocoa/WorkQueueCocoa.cpp:
(WTF::targetQueueForQOSClass): Deleted.

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (261447 => 261448)


--- trunk/Source/WTF/ChangeLog	2020-05-10 00:05:59 UTC (rev 261447)
+++ trunk/Source/WTF/ChangeLog	2020-05-10 00:48:56 UTC (rev 261448)
@@ -1,5 +1,15 @@
 2020-05-09  Darin Adler  <[email protected]>
 
+        Delete some dead code in WorkQueueCocoa.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=211676
+
+        Reviewed by Chris Dumez.
+
+        * wtf/cocoa/WorkQueueCocoa.cpp:
+        (WTF::targetQueueForQOSClass): Deleted.
+
+2020-05-09  Darin Adler  <[email protected]>
+
         Add iterator checking to ListHashSet
         https://bugs.webkit.org/show_bug.cgi?id=211669
 

Modified: trunk/Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp (261447 => 261448)


--- trunk/Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp	2020-05-10 00:05:59 UTC (rev 261447)
+++ trunk/Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp	2020-05-10 00:48:56 UTC (rev 261448)
@@ -45,7 +45,6 @@
     }).get());
 }
 
-#if HAVE(QOS_CLASSES)
 static dispatch_qos_class_t dispatchQOSClass(WorkQueue::QOS qos)
 {
     switch (qos) {
@@ -61,24 +60,6 @@
         return Thread::adjustedQOSClass(QOS_CLASS_BACKGROUND);
     }
 }
-#else
-static dispatch_queue_t targetQueueForQOSClass(WorkQueue::QOS qos)
-{
-    switch (qos) {
-    case WorkQueue::QOS::UserInteractive:
-    case WorkQueue::QOS::UserInitiated:
-        return dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0);
-    case WorkQueue::QOS::Utility:
-        return dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0);
-    case WorkQueue::QOS::Background:
-        return dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0);
-    case WorkQueue::QOS::Default:
-        ASSERT_NOT_REACHED();
-        return nullptr;
-    }
-    ASSERT_NOT_REACHED();
-}
-#endif
 
 void WorkQueue::platformInitialize(const char* name, Type type, QOS qos)
 {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to