Skip to content

Commit

Permalink
Remove EmojiManager#getCodePointCount
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 committed Nov 16, 2023
1 parent 4e103ee commit 7ec8d8b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/src/main/java/net/fellbaum/jemoji/EmojiManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -82,10 +79,6 @@ private interface VoidEmojiProcessor extends EmojiProcessor<Void> {
}
}

private static int getCodePointCount(String string) {
return string.codePointCount(0, string.length());
}

private static Collector<Emoji, ?, LinkedHashMap<Integer, List<Emoji>>> getEmojiLinkedHashMapCollector() {
return Collectors.groupingBy(
emoji -> emoji.getEmoji().codePoints().toArray()[0],
Expand Down

0 comments on commit 7ec8d8b

Please sign in to comment.