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 2e82b9d572c5159fb9d0e3dc38ab695cc103ab8a..b6fb8d4478240280c9e915726273fa6605bb7d25 100644 (file)
@@ -1,3 +1,13 @@
+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
 2017-12-22  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         Fix build failures due to using deprecated AppKit symbols
index 41032dbc8d33cdeaaecbd7192169c635c7ea349b..9dac0585e9f1e4e24c738bf28f5a00344cbf5f38 100644 (file)
@@ -103,7 +103,7 @@ void SWContextManager::terminateWorker(ServiceWorkerIdentifier identifier, Funct
 
     serviceWorker->setTerminatingOrTerminated(true);
 
 
     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);
 
         if (auto* connection = SWContextManager::singleton().connection())
             connection->workerTerminated(identifier);