Remove CompactInterlanguageList.prototype.getCommonLanguages
Unused since fcfa36ac77.
Change-Id: Ifae139d989fb6cb21fc3e19006306ed597d058e6
This commit is contained in:
@@ -316,23 +316,6 @@
|
|||||||
return this.interlanguageList;
|
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.
|
* Hide languages in the interlanguage list.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user