[WTF] Drop Thread::create(obsolete things) API since we can use lambda
[WebKit-https.git] / Source / WebCore / workers / WorkerThread.cpp
index 35a2382..425c924 100644 (file)
@@ -138,16 +138,13 @@ bool WorkerThread::start()
     if (m_thread)
         return true;
 
-    m_thread = Thread::create(WorkerThread::workerThreadStart, this, "WebCore: Worker");
+    m_thread = Thread::create("WebCore: Worker", [this] {
+        workerThread();
+    });
 
     return m_thread;
 }
 
-void WorkerThread::workerThreadStart(void* thread)
-{
-    static_cast<WorkerThread*>(thread)->workerThread();
-}
-
 void WorkerThread::workerThread()
 {
     // Propagate the mainThread's fenv to workers.