Browse Source

ref(SDPUtils) Remove unused functions

release-8443
Jaya Allamsetty 1 year ago
parent
commit
db2edba1b2

+ 0
- 34
modules/sdp/SdpTransformUtil.js View File

193
                 && parsePrimarySSRC(group) === primarySSRC);
193
                 && parsePrimarySSRC(group) === primarySSRC);
194
     }
194
     }
195
 
195
 
196
-    /**
197
-     * @param {string|null} msid the media stream id or <tt>null</tt> to match
198
-     * the first SSRC object with any 'msid' value.
199
-     * @return {Object|undefined} the SSRC object as defined by 'sdp-transform'
200
-     * lib.
201
-     */
202
-    findSSRCByMSID(msid) {
203
-        return this.ssrcs.find(
204
-            ssrcObj => ssrcObj.attribute === 'msid'
205
-                && (msid === null || ssrcObj.value === msid));
206
-    }
207
-
208
     /**
196
     /**
209
      * Gets the SSRC count for the underlying media description.
197
      * Gets the SSRC count for the underlying media description.
210
      * @return {number}
198
      * @return {number}
320
         return videoSSRCs;
308
         return videoSSRCs;
321
     }
309
     }
322
 
310
 
323
-    /**
324
-     * Dumps all SSRC groups of this media description to JSON.
325
-     */
326
-    dumpSSRCGroups() {
327
-        return JSON.stringify(this.mLine.ssrcGroups);
328
-    }
329
-
330
     /**
311
     /**
331
      * Removes all SSRC groups which contain given SSRC number at any position.
312
      * Removes all SSRC groups which contain given SSRC number at any position.
332
      * @param {number} ssrc the SSRC for which all matching groups are to be
313
      * @param {number} ssrc the SSRC for which all matching groups are to be
355
                 .filter(groupInfo => groupInfo.semantics !== semantics);
336
                 .filter(groupInfo => groupInfo.semantics !== semantics);
356
     }
337
     }
357
 
338
 
358
-    /**
359
-     * Replaces SSRC (does not affect SSRC groups, but only attributes).
360
-     * @param {number} oldSSRC the old SSRC number
361
-     * @param {number} newSSRC the new SSRC number
362
-     */
363
-    replaceSSRC(oldSSRC, newSSRC) {
364
-        if (this.mLine.ssrcs) {
365
-            this.mLine.ssrcs.forEach(ssrcInfo => {
366
-                if (ssrcInfo.id === oldSSRC) {
367
-                    ssrcInfo.id = newSSRC;
368
-                }
369
-            });
370
-        }
371
-    }
372
-
373
     /**
339
     /**
374
      * Adds given SSRC group to this media description.
340
      * Adds given SSRC group to this media description.
375
      * @param {object} group the SSRC group object as defined by
341
      * @param {object} group the SSRC group object as defined by

+ 0
- 3
types/hand-crafted/modules/sdp/SdpTransformUtil.d.ts View File

13
   findGroup: ( semantics: string, ssrcs: string ) => unknown | undefined;
13
   findGroup: ( semantics: string, ssrcs: string ) => unknown | undefined;
14
   findGroups: ( semantics: string ) => unknown[];
14
   findGroups: ( semantics: string ) => unknown[];
15
   findGroupByPrimarySSRC: ( semantics: string, primarySSRC: number ) => unknown; // TODO:
15
   findGroupByPrimarySSRC: ( semantics: string, primarySSRC: number ) => unknown; // TODO:
16
-  findSSRCByMSID: ( msid: string | null ) => unknown | undefined; // TODO:
17
   getSSRCCount: () => number;
16
   getSSRCCount: () => number;
18
   containsAnySSRCGroups: () => boolean;
17
   containsAnySSRCGroups: () => boolean;
19
   getPrimaryVideoSsrc: () => number | undefined;
18
   getPrimaryVideoSsrc: () => number | undefined;
20
   getRtxSSRC: ( primarySsrc: number ) => number | undefined;
19
   getRtxSSRC: ( primarySsrc: number ) => number | undefined;
21
   getSSRCs: () => number[];
20
   getSSRCs: () => number[];
22
   getPrimaryVideoSSRCs: () => number[];
21
   getPrimaryVideoSSRCs: () => number[];
23
-  dumpSSRCGroups: () => string;
24
   removeGroupsWithSSRC: ( ssrc: string ) => void;
22
   removeGroupsWithSSRC: ( ssrc: string ) => void;
25
   removeGroupsBySemantics: ( semantics: string ) => void;
23
   removeGroupsBySemantics: ( semantics: string ) => void;
26
-  replaceSSRC: ( oldSSRC: number, newSSRC: number ) => void;
27
   addSSRCGroup: ( group: unknown ) => void; // TODO:
24
   addSSRCGroup: ( group: unknown ) => void; // TODO:
28
 }
25
 }
29
 
26
 

Loading…
Cancel
Save