From 41eebfdbda3219529a7dc06550add79058b0b007 Mon Sep 17 00:00:00 2001 From: ewwwwwwww Date: Tue, 5 Jul 2022 10:36:48 -0700 Subject: [PATCH] remove dead code --- app/soapbox/features/emoji/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/soapbox/features/emoji/index.ts b/app/soapbox/features/emoji/index.ts index 6a3f748a9..d1869bc49 100644 --- a/app/soapbox/features/emoji/index.ts +++ b/app/soapbox/features/emoji/index.ts @@ -99,11 +99,7 @@ export const emojifyText = (str: string, customEmojis = {}) => { let stack = ''; let open = false; - for (let c of split(str)) { - if (c.codePointAt(1) === 65038) { - c = String.fromCodePoint(c.codePointAt(0) as number); - } - + for (const c of split(str)) { if (c in unicodeMapping) { if (open) { // unicode emoji inside colon buf += popStack(stack, open);