mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 12:55:11 +01:00
[Refactoring] Remove unused code (#1276)
This commit is contained in:
parent
cff8813447
commit
db8c183a25
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user