Skip to content

Commit 834029a

Browse files
committed
ve.dm.Converter: Remove deprecated function arguments
Removed 7 years ago and no longer used according to CodeSearch. Change-Id: Id2fbc1d9e3fbaa78cc8fe9d4565b9d7355ebfe83
1 parent 108c969 commit 834029a

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

demos/ve/performance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
const dmSurface = new ve.dm.Surface( dmDoc );
4343

4444
t0 = performance.now();
45-
dom = ve.dm.converter.getDomFromModel( dmDoc, config );
45+
dom = ve.dm.converter.getDomFromModel( dmDoc );
4646
dmDomTimes += performance.now() - t0;
4747

4848
t0 = performance.now();

src/dm/ve.dm.Converter.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,11 +1230,6 @@ ve.dm.Converter.prototype.getInnerWhitespace = function ( data ) {
12301230
* @return {HTMLDocument} Document containing the resulting HTML
12311231
*/
12321232
ve.dm.Converter.prototype.getDomFromModel = function ( model, mode = ve.dm.Converter.static.PARSER_MODE ) {
1233-
// Backwards compatibility with 'forClipboard' argument
1234-
if ( typeof mode === 'boolean' ) {
1235-
mode = mode ? this.constructor.static.CLIPBOARD_MODE : this.constructor.static.PARSER_MODE;
1236-
}
1237-
12381233
const doc = ve.createDocumentFromHtml( '' );
12391234
this.getDomSubtreeFromModel( model, doc.body, mode );
12401235

@@ -1249,10 +1244,6 @@ ve.dm.Converter.prototype.getDomFromModel = function ( model, mode = ve.dm.Conve
12491244
* @return {HTMLDocument} Document containing the resulting HTML
12501245
*/
12511246
ve.dm.Converter.prototype.getDomFromNode = function ( node, mode = ve.dm.Converter.static.PARSER_MODE ) {
1252-
// Backwards compatibility with 'forClipboard' argument
1253-
if ( typeof mode === 'boolean' ) {
1254-
mode = mode ? this.constructor.static.CLIPBOARD_MODE : this.constructor.static.PARSER_MODE;
1255-
}
12561247
return this.getDomFromModel(
12571248
node.getDocument().shallowCloneFromRange( node.isInternal() ? node.getRange() : node.getOuterRange() ),
12581249
mode

0 commit comments

Comments
 (0)