From 5cc01b4d5bc321e84dfd285de58e1ae1cfde497e Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Wed, 18 Sep 2024 13:19:46 -0400 Subject: [PATCH] ref(TPC) Remove unused functions --- modules/RTC/TraceablePeerConnection.js | 34 -------------------------- 1 file changed, 34 deletions(-) diff --git a/modules/RTC/TraceablePeerConnection.js b/modules/RTC/TraceablePeerConnection.js index ae585c9e74..236d4db699 100644 --- a/modules/RTC/TraceablePeerConnection.js +++ b/modules/RTC/TraceablePeerConnection.js @@ -1717,18 +1717,6 @@ TraceablePeerConnection.prototype.removeTrack = function(localTrack) { } }; -/** - * Returns the sender corresponding to the given media type. - * @param {MEDIA_TYPE} mediaType - The media type 'audio' or 'video' to be used for the search. - * @returns {RTPSender|undefined} - The found sender or undefined if no sender - * was found. - */ -TraceablePeerConnection.prototype.findSenderByKind = function(mediaType) { - if (this.peerconnection.getSenders) { - return this.peerconnection.getSenders().find(s => s.track && s.track.kind === mediaType); - } -}; - /** * Returns the receiver corresponding to the given MediaStreamTrack. * @@ -2042,28 +2030,6 @@ TraceablePeerConnection.prototype._mungeOpus = function(description) { }); }; -/** - * Munges the SDP to set all directions to inactive and drop all ssrc and ssrc-groups. - * - * @param {RTCSessionDescription} description that needs to be munged. - * @returns {RTCSessionDescription} the munged description. - */ -TraceablePeerConnection.prototype._mungeInactive = function(description) { - const parsedSdp = transform.parse(description.sdp); - const mLines = parsedSdp.media; - - for (const mLine of mLines) { - mLine.direction = MediaDirection.INACTIVE; - mLine.ssrcs = undefined; - mLine.ssrcGroups = undefined; - } - - return new RTCSessionDescription({ - type: description.type, - sdp: transform.write(parsedSdp) - }); -}; - /** * Sets up the _dtlsTransport object and initializes callbacks for it. */