From 1647ae114fd21b870e6d8f60d17172ead30b8ddf Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Fri, 13 Sep 2024 12:48:50 -0400 Subject: [PATCH] ref(TPC) Remove unused function. --- modules/RTC/TraceablePeerConnection.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/modules/RTC/TraceablePeerConnection.js b/modules/RTC/TraceablePeerConnection.js index 59309baf23..ae585c9e74 100644 --- a/modules/RTC/TraceablePeerConnection.js +++ b/modules/RTC/TraceablePeerConnection.js @@ -1657,22 +1657,6 @@ TraceablePeerConnection.prototype.getConfiguredVideoCodecs = function(descriptio return Array.from(codecs); }; -/** - * Checks if the client has negotiated not to receive video encoded using the given codec, i.e., the codec has been - * removed from the local description. - */ -TraceablePeerConnection.prototype.isVideoCodecDisabled = function(codec) { - const sdp = this.peerconnection.localDescription?.sdp; - - if (!sdp) { - return false; - } - const parsedSdp = transform.parse(sdp); - const mLine = parsedSdp.media.find(m => m.type === MediaType.VIDEO); - - return !mLine.rtp.find(r => r.codec === codec); -}; - /** * Enables or disables simulcast for screenshare based on the frame rate requested for desktop track capture. *