Skip to content

Commit

Permalink
fix(JitsiTrack): Remove func that's no longer used.
Browse files Browse the repository at this point in the history
  • Loading branch information
jallamsetty1 committed Mar 25, 2024
1 parent eaa11dd commit a419b4e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
8 changes: 0 additions & 8 deletions modules/RTC/JitsiLocalTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,14 +518,6 @@ export default class JitsiLocalTrack extends JitsiTrack {
*/
_setStream(stream) {
super._setStream(stream);

if (stream) {
// Store the MSID for video mute/unmute purposes.
this.storedMSID = this.getMSID();
logger.debug(`Setting new MSID: ${this.storedMSID} on ${this}`);
} else {
logger.debug(`Setting 'null' stream on ${this}`);
}
}

/**
Expand Down
11 changes: 0 additions & 11 deletions modules/RTC/JitsiTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,17 +276,6 @@ export default class JitsiTrack extends EventEmitter {
return this.getStreamId();
}

/**
* Returns the msid of the stream attached to the JitsiTrack object or null
* if no stream is attached.
*/
getMSID() {
const streamId = this.getStreamId();
const trackId = this.getTrackId();

return streamId && trackId ? `${streamId} ${trackId}` : null;
}

/**
* Returns the WebRTC MediaStream instance.
*/
Expand Down
1 change: 0 additions & 1 deletion types/hand-crafted/modules/RTC/JitsiTrack.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default class JitsiTrack extends EventEmitter {
getId: () => string | null;
isActive: () => boolean;
setAudioLevel: ( audioLevel: number, tpc: TraceablePeerConnection ) => void;
getMSID: () => string | null;
setAudioOutput: ( audioOutputDeviceId: '' | string ) => Promise<unknown>; // TODO: what will this promise contain?
addEventListener: (type: string, listener: (event: any) => void) => void;
}

0 comments on commit a419b4e

Please sign in to comment.