Removing some dead code in RTCPeerConnection
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Oct 2017 16:59:41 +0000 (16:59 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Oct 2017 16:59:41 +0000 (16:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=178011

Patch by Youenn Fablet <youenn@apple.com> on 2017-10-06
Reviewed by Alejandro G. Castro.

No change of behavior.
Removing code used by non-libwebrtc WebRTC backends.

* Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::addTrack):
(WebCore::RTCPeerConnection::removeTrack):
(WebCore::RTCPeerConnection::completeAddTransceiver):

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

Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp

index 23a62c7..726b7e6 100644 (file)
@@ -1,3 +1,18 @@
+2017-10-06  Youenn Fablet  <youenn@apple.com>
+
+        Removing some dead code in RTCPeerConnection
+        https://bugs.webkit.org/show_bug.cgi?id=178011
+
+        Reviewed by Alejandro G. Castro.
+
+        No change of behavior.
+        Removing code used by non-libwebrtc WebRTC backends.
+
+        * Modules/mediastream/RTCPeerConnection.cpp:
+        (WebCore::RTCPeerConnection::addTrack):
+        (WebCore::RTCPeerConnection::removeTrack):
+        (WebCore::RTCPeerConnection::completeAddTransceiver):
+
 2017-10-05  Dean Jackson  <dino@apple.com>
 
         ImageBitmap API stubs
index 8c681dc..0f9f388 100644 (file)
@@ -159,10 +159,6 @@ ExceptionOr<Ref<RTCRtpSender>> RTCPeerConnection::addTrack(Ref<MediaStreamTrack>
         m_transceiverSet->append(WTFMove(transceiver));
     }
 
-#if !USE(LIBWEBRTC)
-    m_backend->markAsNeedingNegotiation();
-#endif
-
     m_backend->notifyAddedTrack(*sender);
     return Ref<RTCRtpSender> { *sender };
 }
@@ -187,9 +183,6 @@ ExceptionOr<void> RTCPeerConnection::removeTrack(RTCRtpSender& sender)
     sender.stop();
 
     m_backend->notifyRemovedTrack(sender);
-#if !USE(LIBWEBRTC)
-    m_backend->markAsNeedingNegotiation();
-#endif
     return { };
 }
 
@@ -223,9 +216,6 @@ Ref<RTCRtpTransceiver> RTCPeerConnection::completeAddTransceiver(Ref<RTCRtpSende
     transceiver->setDirection(init.direction);
 
     m_transceiverSet->append(transceiver.copyRef());
-#if !USE(LIBWEBRTC)
-    m_backend->markAsNeedingNegotiation();
-#endif
     return transceiver;
 }