Bladeren bron

sdp: remove remove(Session|Media)Lines

removes two unused methods for mangling SDP.
master
Philipp Hancke 5 jaren geleden
bovenliggende
commit
b183d09b5b
1 gewijzigde bestanden met toevoegingen van 0 en 28 verwijderingen
  1. 0
    28
      modules/xmpp/SDP.js

+ 0
- 28
modules/xmpp/SDP.js Bestand weergeven

@@ -147,34 +147,6 @@ SDP.prototype.mangle = function() {
147 147
     this.raw = this.session + this.media.join('');
148 148
 };
149 149
 
150
-// remove lines matching prefix from session section
151
-SDP.prototype.removeSessionLines = function(prefix) {
152
-    const self = this;
153
-    const lines = SDPUtil.findLines(this.session, prefix);
154
-
155
-    lines.forEach(line => {
156
-        self.session = self.session.replace(`${line}\r\n`, '');
157
-    });
158
-    this.raw = this.session + this.media.join('');
159
-
160
-    return lines;
161
-};
162
-
163
-// remove lines matching prefix from a media section specified by mediaindex
164
-// TODO: non-numeric mediaindex could match mid
165
-SDP.prototype.removeMediaLines = function(mediaindex, prefix) {
166
-    const self = this;
167
-    const lines = SDPUtil.findLines(this.media[mediaindex], prefix);
168
-
169
-    lines.forEach(line => {
170
-        self.media[mediaindex]
171
-            = self.media[mediaindex].replace(`${line}\r\n`, '');
172
-    });
173
-    this.raw = this.session + this.media.join('');
174
-
175
-    return lines;
176
-};
177
-
178 150
 // add content's to a jingle element
179 151
 SDP.prototype.toJingle = function(elem, thecreator) {
180 152
     let i, j, k, lines, mline, rtpmap, ssrc, tmp;

Laden…
Annuleren
Opslaan