Unreviewed, try to fix the build on recent SDKs after r226274.
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Dec 2017 23:05:37 +0000 (23:05 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Dec 2017 23:05:37 +0000 (23:05 +0000)
Unused variables captured in a lambda now cause warnings the latest SDKs. It seems that after r226274, the block
in `SWContextManager::terminateWorker` no longer accesses `this->m_workerMap`, so `this` is now unused.

* workers/service/context/SWContextManager.cpp:
(WebCore::SWContextManager::terminateWorker):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226280 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/workers/service/context/SWContextManager.cpp

index 2e82b9d..b6fb8d4 100644 (file)
@@ -1,5 +1,15 @@
 2017-12-22  Wenson Hsieh  <wenson_hsieh@apple.com>
 
+        Unreviewed, try to fix the build on recent SDKs after r226274.
+
+        Unused variables captured in a lambda now cause warnings the latest SDKs. It seems that after r226274, the block
+        in `SWContextManager::terminateWorker` no longer accesses `this->m_workerMap`, so `this` is now unused.
+
+        * workers/service/context/SWContextManager.cpp:
+        (WebCore::SWContextManager::terminateWorker):
+
+2017-12-22  Wenson Hsieh  <wenson_hsieh@apple.com>
+
         Fix build failures due to using deprecated AppKit symbols
         https://bugs.webkit.org/show_bug.cgi?id=181110
         <rdar://problem/36162865>
index 41032db..9dac058 100644 (file)
@@ -103,7 +103,7 @@ void SWContextManager::terminateWorker(ServiceWorkerIdentifier identifier, Funct
 
     serviceWorker->setTerminatingOrTerminated(true);
 
-    serviceWorker->thread().stop([this, identifier, serviceWorker = WTFMove(serviceWorker), completionHandler = WTFMove(completionHandler)]() mutable {
+    serviceWorker->thread().stop([identifier, serviceWorker = WTFMove(serviceWorker), completionHandler = WTFMove(completionHandler)]() mutable {
         if (auto* connection = SWContextManager::singleton().connection())
             connection->workerTerminated(identifier);