Unreviewed build fix, remove unused lambda captures.
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Jan 2018 18:12:45 +0000 (18:12 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Jan 2018 18:12:45 +0000 (18:12 +0000)
* dom/messageports/MessagePortChannel.cpp:
(WebCore::MessagePortChannel::takeAllMessagesForPort):
* dom/messageports/MessagePortChannelRegistry.cpp:
(WebCore::MessagePortChannelRegistry::messagePortChannelCreated):

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

Source/WebCore/ChangeLog
Source/WebCore/dom/messageports/MessagePortChannel.cpp
Source/WebCore/dom/messageports/MessagePortChannelRegistry.cpp

index 654a889..81ff5c9 100644 (file)
@@ -1,3 +1,12 @@
+2018-01-19  Jonathan Bedard  <jbedard@apple.com>
+
+        Unreviewed build fix, remove unused lambda captures.
+
+        * dom/messageports/MessagePortChannel.cpp:
+        (WebCore::MessagePortChannel::takeAllMessagesForPort):
+        * dom/messageports/MessagePortChannelRegistry.cpp:
+        (WebCore::MessagePortChannelRegistry::messagePortChannelCreated):
+
 2018-01-19  Antoine Quint  <graouts@apple.com>
 
         [Web Animations] Expose timing properties (delay, endDelay, fill, iterationStart, iterations, direction) and getComputedTiming()
index f00bf0a..8703409 100644 (file)
@@ -184,6 +184,9 @@ void MessagePortChannel::takeAllMessagesForPort(const MessagePortIdentifier& por
     locker.unlockEarly();
     callback(WTFMove(result), [size, this, port, protectedThis = WTFMove(m_pendingMessageProtectors[i]), transferredPortProtectors = WTFMove(transferredPortProtectors)] {
         UNUSED_PARAM(port);
+#if LOG_DISABLED
+        UNUSED_PARAM(size);
+#endif
         --m_messageBatchesInFlight;
         LOG(MessagePorts, "Message port channel %s was notified that a batch of %zu message port messages targeted for port %s just completed dispatch, in flight is now %llu", logString().utf8().data(), size, port.logString().utf8().data(), m_messageBatchesInFlight);
 
index 6a81123..7572610 100644 (file)
@@ -48,12 +48,12 @@ void MessagePortChannelRegistry::messagePortChannelCreated(MessagePortChannel& c
     Locker<Lock> locker(m_openChannelsLock);
     ASSERT(isMainThread());
 
-    auto result = m_openChannels.ensure(channel.port1(), [this, channel = &channel] {
+    auto result = m_openChannels.ensure(channel.port1(), [channel = &channel] {
         return channel;
     });
     ASSERT(result.isNewEntry);
 
-    result = m_openChannels.ensure(channel.port2(), [this, channel = &channel] {
+    result = m_openChannels.ensure(channel.port2(), [channel = &channel] {
         return channel;
     });
     ASSERT(result.isNewEntry);