Remove CompactInterlanguageList.prototype.getCommonLanguages

Unused since fcfa36ac77.

Change-Id: Ifae139d989fb6cb21fc3e19006306ed597d058e6
This commit is contained in:
Niklas Laxström
2021-02-10 14:39:25 +01:00
parent 64aeedfb17
commit b385d58aca

View File

@@ -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.
* *