From f6c621dab50885b8b85f62225eba1e8fc79315f6 Mon Sep 17 00:00:00 2001 From: Harshit Bansal Date: Thu, 28 Sep 2017 17:15:17 +0000 Subject: [PATCH] build_emoji: Remove the hack used for displaying number emojis correctly. This hack was used to fix the broken number emojis in the emoji picker. It was broken because of the partial migration to the iamcal dataset. See issue #4775 for more details. --- tools/setup/emoji/build_emoji | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tools/setup/emoji/build_emoji b/tools/setup/emoji/build_emoji index 4d333dc199..7b13639e6c 100755 --- a/tools/setup/emoji/build_emoji +++ b/tools/setup/emoji/build_emoji @@ -106,15 +106,6 @@ def generate_sprite_css_files(cache_path, emoji_map, emoji_data): 'pos_x': (emoji["sheet_x"] * 100) / 48, 'pos_y': (emoji["sheet_y"] * 100) / 48, } - # Remove the code below once the migration to iamcal's dataset is complete. - emoji_name = emoji['short_name'] - codepoint = emoji['unified'].lower() - if emoji_name in emoji_map and codepoint != emoji_map[emoji_name]: - emoji_positions += EMOJI_POS_INFO_TEMPLATE % { - 'codepoint': emoji_map[emoji_name], - 'pos_x': (emoji["sheet_x"] * 100) / 48, - 'pos_y': (emoji["sheet_y"] * 100) / 48, - } for emojiset in EMOJISETS: SPRITE_CSS_PATH = os.path.join(cache_path, '%s_sprite.css' % (emojiset,))