[Refactoring] Remove unused code (#1276)

This commit is contained in:
Alexander Zinchuk 2021-07-15 03:02:42 +03:00
parent cff8813447
commit db8c183a25

View File

@ -1,6 +1,5 @@
import { GlobalState } from '../../global/types';
import { ApiSticker } from '../../api/types';
import { LangCode, EmojiKeywords } from '../../types';
export function selectIsStickerFavorite(global: GlobalState, sticker: ApiSticker) {
const { stickers } = global.stickers.favorite;
@ -45,9 +44,3 @@ export function selectAnimatedEmoji(global: GlobalState, emoji: string) {
return animatedEmojis.stickers.find((sticker) => sticker.emoji === emoji || sticker.emoji === cleanedEmoji);
}
export function selectEmojiKeywords(global: GlobalState, language: LangCode): EmojiKeywords | undefined {
return global.emojiKeywords[language] && global.emojiKeywords[language] !== undefined
? global.emojiKeywords[language] as EmojiKeywords
: undefined;
}