[WTF] Drop Thread::create(obsolete things) API since we can use lambda
[WebKit-https.git] / Source / WebKit / Storage / StorageThread.cpp
index f3cbed3..9b50907 100644 (file)
@@ -53,17 +53,15 @@ StorageThread::~StorageThread()
 bool StorageThread::start()
 {
     ASSERT(isMainThread());
-    if (!m_thread)
-        m_thread = Thread::create(StorageThread::threadEntryPointCallback, this, "WebCore: LocalStorage");
+    if (!m_thread) {
+        m_thread = Thread::create("WebCore: LocalStorage", [this] {
+            threadEntryPoint();
+        });
+    }
     activeStorageThreads().add(this);
     return m_thread;
 }
 
-void StorageThread::threadEntryPointCallback(void* thread)
-{
-    static_cast<StorageThread*>(thread)->threadEntryPoint();
-}
-
 void StorageThread::threadEntryPoint()
 {
     ASSERT(!isMainThread());