Skip to content

Commit

Permalink
ref(TPC) Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jallamsetty1 committed Sep 18, 2024
1 parent 1647ae1 commit 5cc01b4
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions modules/RTC/TraceablePeerConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*/
Expand Down

0 comments on commit 5cc01b4

Please sign in to comment.