Remove unused methods

This commit is contained in:
filoghost 2019-06-03 14:44:27 +02:00
parent 66fe72b0eb
commit d372fcce63

View File

@ -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);