remove unused function from NetworkUtil
This commit is contained in:
parent
6ef7c8576a
commit
9c6567f1b4
|
@ -6,8 +6,6 @@ import org.json.simple.JSONObject;
|
|||
import org.json.simple.JSONValue;
|
||||
import org.json.simple.parser.ParseException;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.UUID;
|
||||
|
@ -38,14 +36,4 @@ public final class NetworkUtil {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static BufferedImage getIcon(UUID id) {
|
||||
try {
|
||||
URL url = new URL("https://minotar.net/avatar/" + id.toString().replace("-", ""));
|
||||
return ImageIO.read(url);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue