From d372fcce63e1bab7eaef5d0f8816a15d65c88730 Mon Sep 17 00:00:00 2001 From: filoghost Date: Mon, 3 Jun 2019 14:44:27 +0200 Subject: [PATCH] Remove unused methods --- .../holographicdisplays/util/Utils.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/Utils/src/main/java/com/gmail/filoghost/holographicdisplays/util/Utils.java b/Utils/src/main/java/com/gmail/filoghost/holographicdisplays/util/Utils.java index a09ee9f5..71279e95 100644 --- a/Utils/src/main/java/com/gmail/filoghost/holographicdisplays/util/Utils.java +++ b/Utils/src/main/java/com/gmail/filoghost/holographicdisplays/util/Utils.java @@ -14,8 +14,6 @@ */ package com.gmail.filoghost.holographicdisplays.util; -import org.bukkit.ChatColor; - public class Utils extends Object { /** @@ -33,25 +31,6 @@ public class Utils extends Object { } - /** - * Convenience method to add colors to a string. - * @param text the text to colorize - * @return the colorized text, or null if text was null - */ - public static String addColors(String text) { - if (text == null) { - return null; - } - - return ChatColor.translateAlternateColorCodes('&', text); - } - - - public static boolean containsIgnoreCase(String toCheck, String content) { - return toCheck.toLowerCase().contains(content.toLowerCase()); - } - - public static int floor(double num) { int floor = (int) num; return floor == num ? floor : floor - (int) (Double.doubleToRawLongBits(num) >>> 63);