From 37e426e89f5ccf9204a3cb7b2edaa4dd33f99a53 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 14 Nov 2024 03:40:28 +0000 Subject: [PATCH] Removed addLegacy and loadLegacy. --- src/mami.js/emotes.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/mami.js/emotes.js b/src/mami.js/emotes.js index ef67d49..f019884 100644 --- a/src/mami.js/emotes.js +++ b/src/mami.js/emotes.js @@ -9,29 +9,13 @@ const MamiEmotes = (function() { emotes.push(emote); }; - const addLegacy = function(emoteOld) { - const emote = { - url: emoteOld.Image, - min_rank: emoteOld.Hierarchy, - strings: [], - }; - for(let i = 0; i < emoteOld.Text.length; ++i) - emote.strings.push(emoteOld.Text[i].slice(1, -1)); - add(emote); - }; - return { clear: clear, add: add, - addLegacy: addLegacy, load: function(batch) { for(const emote of batch) add(emote); }, - loadLegacy: function(batch) { - for(const emote of batch) - addLegacy(emote); - }, forEach: function(minRank, callback) { for(const emote of emotes) if(!emote.min_rank || emote.min_rank <= minRank)