From 7ec8d8b24f49ea81559f35ea8ec16e2a7d4b52b0 Mon Sep 17 00:00:00 2001 From: freya02 <41875020+freya022@users.noreply.github.com> Date: Thu, 16 Nov 2023 14:23:54 +0100 Subject: [PATCH] Remove EmojiManager#getCodePointCount --- lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java b/lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java index 6f87fce..9534984 100644 --- a/lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java +++ b/lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java @@ -15,10 +15,7 @@ import java.util.stream.Collector; import java.util.stream.Collectors; -import static net.fellbaum.jemoji.EmojiUtils.addColonToAlias; -import static net.fellbaum.jemoji.EmojiUtils.findEmojiByEitherAlias; -import static net.fellbaum.jemoji.EmojiUtils.isStringNullOrEmpty; -import static net.fellbaum.jemoji.EmojiUtils.removeColonFromAlias; +import static net.fellbaum.jemoji.EmojiUtils.*; @SuppressWarnings("unused") public final class EmojiManager { @@ -82,10 +79,6 @@ private interface VoidEmojiProcessor extends EmojiProcessor { } } - private static int getCodePointCount(String string) { - return string.codePointCount(0, string.length()); - } - private static Collector>> getEmojiLinkedHashMapCollector() { return Collectors.groupingBy( emoji -> emoji.getEmoji().codePoints().toArray()[0],