From 404f7e48a6d2952074d73e3d9d759b11aa01f311 Mon Sep 17 00:00:00 2001 From: Ryan Barlow <7389646+ryanbarlow97@users.noreply.github.com> Date: Wed, 23 Sep 2026 08:13:34 +0000 Subject: [PATCH] chore: remove unused Utils colour helper Utils.colorize has no callers in main or test sources, and nothing else in the workspace references the surgery utils package. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../net/tfminecraft/surgery/utils/Utils.java | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/main/java/net/tfminecraft/surgery/utils/Utils.java diff --git a/src/main/java/net/tfminecraft/surgery/utils/Utils.java b/src/main/java/net/tfminecraft/surgery/utils/Utils.java deleted file mode 100644 index 6c16576..0000000 --- a/src/main/java/net/tfminecraft/surgery/utils/Utils.java +++ /dev/null @@ -1,20 +0,0 @@ -package net.tfminecraft.surgery.utils; - -import java.util.regex.Matcher; -import java.util.regex.Pattern; -import net.md_5.bungee.api.ChatColor; - -public class Utils { - - // Keep the existing legacy text representation, formatting, and exact-string comparisons. - @SuppressWarnings("deprecation") - public static String colorize(String msg) { - Matcher match = Pattern.compile("#[a-fA-F0-9]{6}").matcher(msg); - while (match.find()) { - String color = msg.substring(match.start(), match.end()); - msg = msg.replace(color, String.valueOf(ChatColor.of(color))); - match = Pattern.compile("#[a-fA-F0-9]{6}").matcher(msg); - } - return ChatColor.translateAlternateColorCodes('&', msg); - } -} \ No newline at end of file