From fcd50f41f367222da35de267789d9c737ef307e2 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Mon, 6 Aug 2018 19:26:12 +0200 Subject: [PATCH] mediawiki.util: Remove deprecated noop function mw.util.init() The function mw.util.init() is since 06a0dec0 (Release 1.30) a deprecated no-op function. Change-Id: Ie3806e7fba0e63a75e9a830b2eb4485011e43cf1 --- RELEASE-NOTES-1.32 | 2 ++ resources/src/mediawiki.util.js | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/RELEASE-NOTES-1.32 b/RELEASE-NOTES-1.32 index 00a6ce94a3..495c0b10c3 100644 --- a/RELEASE-NOTES-1.32 +++ b/RELEASE-NOTES-1.32 @@ -241,6 +241,8 @@ because of Phabricator reports. * MagicWord::clearCache() has been removed. Instead, create a new MagicWordFactory, such as by calling resetServiceForTesting( 'MagicWordFactory' ) on a MediaWikiServices. +* mw.util.init() has been removed. This function is not needed anymore and was + a no-op function since 1.30. === Deprecations in 1.32 === * Use of a StartProfiler.php file is deprecated in favour of placing diff --git a/resources/src/mediawiki.util.js b/resources/src/mediawiki.util.js index 1db890419c..9eea6f38e6 100644 --- a/resources/src/mediawiki.util.js +++ b/resources/src/mediawiki.util.js @@ -586,14 +586,6 @@ }() ); } - /** - * Former public initialisation. Now a no-op function. - * - * @method util_init - * @deprecated since 1.30 - */ - mw.log.deprecate( util, 'init', $.noop, 'Remove the call of mw.util.init().', 'mw.util.init' ); - $( init ); mw.util = util; -- 2.20.1