1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-05 10:18:45 +09:00

[Glitch] LanguageDropdown: remove unused function

Port a243963e93 to glitch-soc

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Marcin Mikołajczak 2024-06-13 21:46:45 +02:00 committed by Claire
parent 8089fa6935
commit f0dba9af6f

View File

@ -110,18 +110,6 @@ class LanguageDropdownMenu extends PureComponent {
}).map(result => result.obj);
}
frequentlyUsed () {
const { languages, value } = this.props;
const current = languages.find(lang => lang[0] === value);
const results = [];
if (current) {
results.push(current);
}
return results;
}
handleClick = e => {
const value = e.currentTarget.getAttribute('data-index');