mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-27 21:05:35 +01:00
Remove unused methods
This commit is contained in:
parent
66fe72b0eb
commit
d372fcce63
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user