From b385d58aca0812a52f13d1b79f99503fb033a1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 10 Feb 2021 14:39:25 +0100 Subject: [PATCH] Remove CompactInterlanguageList.prototype.getCommonLanguages Unused since fcfa36ac77376bd47c6ef6c78fc10b9f5363b90e. Change-Id: Ifae139d989fb6cb21fc3e19006306ed597d058e6 --- resources/js/ext.uls.compactlinks.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/resources/js/ext.uls.compactlinks.js b/resources/js/ext.uls.compactlinks.js index c10e5f26..00be68b0 100644 --- a/resources/js/ext.uls.compactlinks.js +++ b/resources/js/ext.uls.compactlinks.js @@ -316,23 +316,6 @@ return this.interlanguageList; }; - /** - * Get common languages - the most probable languages predicted by ULS. - * - * @param {string[]} languages Language codes - * @return {string[]} List of all common language codes - */ - CompactInterlanguageList.prototype.getCommonLanguages = function ( languages ) { - if ( this.commonInterlanguageList === null ) { - this.commonInterlanguageList = mw.uls.getFrequentLanguageList() - .filter( function ( language ) { - return languages.indexOf( language ) >= 0; - } ); - } - - return this.commonInterlanguageList; - }; - /** * Hide languages in the interlanguage list. *