From e1d6e822f155173d8f44dfbdb91626112cd2145b Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 7 May 2026 20:40:44 +0200 Subject: Slight refactor of handling the base skin tone variation Instead of adding only the skin tone variations to emojis_skintone_modifiable.txt and explicitly adding the base variation in Emoji.init(), we can just add the base variant in gen_emojis.txt and can remove special handling in Emoji.java, including the copy constructor that we needed for this specific case --- srcs/juloo.keyboard2/Emoji.java | 8 -------- 1 file changed, 8 deletions(-) (limited to 'srcs/juloo.keyboard2') diff --git a/srcs/juloo.keyboard2/Emoji.java b/srcs/juloo.keyboard2/Emoji.java index 8a82e31..98eb600 100644 --- a/srcs/juloo.keyboard2/Emoji.java +++ b/srcs/juloo.keyboard2/Emoji.java @@ -20,12 +20,6 @@ public class Emoji this._skintones = new ArrayList<>(); } - protected Emoji(Emoji e) - { - this._kv = e.kv(); - this._skintones = new ArrayList<>(e.skintones()); - } - public KeyValue kv() { return _kv; @@ -89,8 +83,6 @@ public class Emoji int baseIndex = Integer.parseInt(line); Emoji baseEmoji = _all.get(baseIndex); - baseEmoji.addSkintone(new Emoji(baseEmoji)); - while (!(line = reader.readLine()).isEmpty()) { baseEmoji.addSkintone(new Emoji(line)); -- cgit v1.2.3