mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-30 01:20:25 +07:00
Removed unused method
This commit is contained in:
parent
6bb974e711
commit
ec4b8e5d2e
@ -350,21 +350,6 @@ public abstract class Excel<T extends Excel.Entry> implements Iterable<T> {
|
||||
|
||||
public void writeBin(DataOutput out) throws IOException {}
|
||||
|
||||
public static <T extends Excel> T read(Class<T> excelClass, DataInput in) {
|
||||
if (!isBinned(excelClass)) {
|
||||
throw new GdxRuntimeException(excelClass + " is not annotated with " + Excel.Binned.class);
|
||||
}
|
||||
|
||||
try {
|
||||
T excel = excelClass.newInstance();
|
||||
excel.readBin(in);
|
||||
excel.init();
|
||||
return excel;
|
||||
} catch (Throwable t) {
|
||||
throw new GdxRuntimeException("Couldn't load excel " + excelClass, t);
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private static Class<Entry> getEntryClass(Class excelClass) {
|
||||
Class[] declaredClasses = excelClass.getDeclaredClasses();
|
||||
|
Loading…
Reference in New Issue
Block a user