diff options
author | wurstsalat <mailtrash@posteo.de> | 2022-09-23 11:10:32 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2022-09-23 17:50:26 +0300 |
commit | 1fe1d7047504157b4f56ebeccaf0ffcf8d8e2d8e (patch) | |
tree | 828fed3d1e23d631509b0955dfc93398b09e313c | |
parent | 64b039798b12dde541082232f0be5dda49e43322 (diff) |
chore: emoji_data: Remove unused methodemoji-improvements
-rw-r--r-- | gajim/gtk/emoji_data.py | 8 | ||||
-rw-r--r-- | gajim/gtk/emoji_data.pyi | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/gajim/gtk/emoji_data.py b/gajim/gtk/emoji_data.py index d35c2bbd6..46ce1b547 100644 --- a/gajim/gtk/emoji_data.py +++ b/gajim/gtk/emoji_data.py @@ -17,7 +17,6 @@ from typing import Optional import re -import sys import weakref from enum import IntEnum from collections import OrderedDict @@ -47,7 +46,6 @@ def is_emoji(codepoints: str) -> bool: return True return False - def get_emoji_pixbuf(codepoints: str) -> Optional[GdkPixbuf.Pixbuf]: ascii_codepoint = emoji_ascii_data.get(codepoints, None) if ascii_codepoint is not None: @@ -62,12 +60,6 @@ def get_emoji_pixbuf(codepoints: str) -> Optional[GdkPixbuf.Pixbuf]: return pixbuf -def get_emoji_font() -> str: - if sys.platform == 'win32': - return 'Segoe UI Emoji' - return 'Noto Color Emoji' - - class EmojiData(OrderedDict): def __getitem__(self, key): try: diff --git a/gajim/gtk/emoji_data.pyi b/gajim/gtk/emoji_data.pyi index 7c74d0d26..6666250a2 100644 --- a/gajim/gtk/emoji_data.pyi +++ b/gajim/gtk/emoji_data.pyi @@ -22,7 +22,6 @@ class Emoji(IntEnum): ... def is_emoji(codepoints: str) -> bool: ... -def get_emoji_font() -> str: ... def get_emoji_pixbuf(codepoints: str) -> GdkPixbuf.Pixbuf: ... class EmojiData(OrderedDict): |