From bc4fa6b198557a7f3989eb0865e2c77ac7451d29 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Sun, 3 Dec 2017 23:26:40 -0800 Subject: Rename themes -> flavours ? ? --- .../themes/glitch/util/emoji/unicode_to_unified_name.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 app/javascript/themes/glitch/util/emoji/unicode_to_unified_name.js (limited to 'app/javascript/themes/glitch/util/emoji/unicode_to_unified_name.js') diff --git a/app/javascript/themes/glitch/util/emoji/unicode_to_unified_name.js b/app/javascript/themes/glitch/util/emoji/unicode_to_unified_name.js deleted file mode 100644 index 808ac197e..000000000 --- a/app/javascript/themes/glitch/util/emoji/unicode_to_unified_name.js +++ /dev/null @@ -1,17 +0,0 @@ -function padLeft(str, num) { - while (str.length < num) { - str = '0' + str; - } - return str; -} - -exports.unicodeToUnifiedName = (str) => { - let output = ''; - for (let i = 0; i < str.length; i += 2) { - if (i > 0) { - output += '-'; - } - output += padLeft(str.codePointAt(i).toString(16).toUpperCase(), 4); - } - return output; -}; -- cgit