jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/332923 )
Change subject: Hygiene: Remove getWikiBaseItemId util ...................................................................... Hygiene: Remove getWikiBaseItemId util Method is not used anywhere. Bug: T155595 Change-Id: Ic3aaf95791a8e85efa56408ef2a40ed9cac1d4bd --- M resources/mobile.startup/util.js 1 file changed, 0 insertions(+), 17 deletions(-) Approvals: Bmansurov: Looks good to me, approved jenkins-bot: Verified diff --git a/resources/mobile.startup/util.js b/resources/mobile.startup/util.js index 95d7bc8..473722e 100644 --- a/resources/mobile.startup/util.js +++ b/resources/mobile.startup/util.js @@ -19,23 +19,6 @@ */ escapeHash: function ( hash ) { return hash.replace( /(:|\.)/g, '\\$1' ); - }, - /** - * Return wgWikiBaseItemID config variable or 'wikidataid' query parameter if exits - * @return {null|string} - */ - getWikiBaseItemId: function () { - var id = mw.config.get( 'wgWikibaseItemId' ), - idOverride; - - if ( !id ) { - idOverride = mw.util.getParamValue( 'wikidataid' ); - if ( idOverride ) { - mw.config.set( 'wgWikibaseItemId', idOverride ); - id = idOverride; - } - } - return id; } }; -- To view, visit https://gerrit.wikimedia.org/r/332923 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic3aaf95791a8e85efa56408ef2a40ed9cac1d4bd Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org> Gerrit-Reviewer: Bmansurov <bmansu...@wikimedia.org> Gerrit-Reviewer: Jdlrobson <jrob...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits