From: Moriel Schottlender Date: Thu, 2 Nov 2017 23:48:45 +0000 (-0700) Subject: RCFilters: Remove redundant replaceUpdatedUrl method X-Git-Tag: 1.31.0-rc.0~1576 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=d60e387b2b796999122fb45e9c19b4cfec8948bb;p=lhc%2Fweb%2Fwiklou.git RCFilters: Remove redundant replaceUpdatedUrl method The method should call updateURL anyways. If it's initializing, the comparison to the original URL will still be false and the system will apply replaceState on the URL. Change-Id: Ibfa104ed2aba94a5c17ed8ce3580a089d60e4d97 --- diff --git a/resources/src/mediawiki.rcfilters/mw.rcfilters.Controller.js b/resources/src/mediawiki.rcfilters/mw.rcfilters.Controller.js index d1092a1ced..28b94e49a3 100644 --- a/resources/src/mediawiki.rcfilters/mw.rcfilters.Controller.js +++ b/resources/src/mediawiki.rcfilters/mw.rcfilters.Controller.js @@ -856,7 +856,7 @@ * without adding an history entry. */ mw.rcfilters.Controller.prototype.replaceUrl = function () { - this.uriProcessor.replaceUpdatedUri(); + this.uriProcessor.updateURL(); }; /** diff --git a/resources/src/mediawiki.rcfilters/mw.rcfilters.UriProcessor.js b/resources/src/mediawiki.rcfilters/mw.rcfilters.UriProcessor.js index 0e20e3f08b..c25aa738ac 100644 --- a/resources/src/mediawiki.rcfilters/mw.rcfilters.UriProcessor.js +++ b/resources/src/mediawiki.rcfilters/mw.rcfilters.UriProcessor.js @@ -54,13 +54,6 @@ return Number( uriQuery.urlversion || 1 ); }; - /** - * Replace the current URI with an updated one from the model state - */ - mw.rcfilters.UriProcessor.prototype.replaceUpdatedUri = function () { - this.constructor.static.replaceState( this.getUpdatedUri() ); - }; - /** * Get an updated mw.Uri object based on the model state *