mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-07 23:42:11 -05:00
[Glitch] LanguageDropdown: remove unused function
Port a243963e934123e17519711ce0378eaa7b5f8204 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:
parent
8089fa6935
commit
f0dba9af6f
@ -110,18 +110,6 @@ class LanguageDropdownMenu extends PureComponent {
|
|||||||
}).map(result => result.obj);
|
}).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 => {
|
handleClick = e => {
|
||||||
const value = e.currentTarget.getAttribute('data-index');
|
const value = e.currentTarget.getAttribute('data-index');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user