JavaScriptMinifier: Remove support for unused $statementsOnOwnLine flag
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 22 Dec 2017 17:47:21 +0000 (18:47 +0100)
committerKrinkle <krinklemail@gmail.com>
Fri, 22 Dec 2017 18:38:04 +0000 (18:38 +0000)
commit93b8023946b0ed1c310977e7a80b4842ba04c3df
tree375cc5cfb0292ced4181ff5cc8d79a7f86da4a7e
parent201c1d226cb552312ff9b1009b5749a6d4b8fc02
JavaScriptMinifier: Remove support for unused $statementsOnOwnLine flag

The $wgResourceLoaderMinifierStatementsOnOwnLine config var was deprecated
in MediaWiki 1.27. The parameter of minify() was not used by other code, and
no new usage has been introduced since then, either.

Remove the feature from JavaScriptMinifier, and add a release note for that.
The same 1.31 release notes also contain a note already about the removal
of the configuration variable.

The feature was not covered by unit tests.

The following private variables have been removed, that are no longer used
due to this change: $newlineBefore, $newlineAfter, $newlineAdded.

Change-Id: I2cbf271156c1954abb982531d0125b4b9573b12c
RELEASE-NOTES-1.31
includes/libs/JavaScriptMinifier.php