Removed addLegacy and loadLegacy.

This commit is contained in:
flash 2024-11-14 03:40:28 +00:00
parent 6943dab44e
commit 37e426e89f

View file

@ -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)