Removed non-used code

This commit is contained in:
Andrew 2013-05-30 06:21:56 +12:00
parent a131e55018
commit f31e9011ff

View File

@ -26,7 +26,6 @@ public abstract class FlagWatcher {
}
private int entityId;
private HashMap<Integer, Object> entityValues = new HashMap<Integer, Object>();
private HashMap<Integer, Object> softReplace = new HashMap<Integer, Object>();
protected FlagWatcher(int entityId) {
this.entityId = entityId;
@ -66,10 +65,6 @@ public abstract class FlagWatcher {
watch.a(value);
}
}
} else if (softReplace.containsKey(watch.a())) {
if (watch.b().getClass() == softReplace.get(watch.a()).getClass()) {
}
}
newList.add(watch);
}
@ -88,31 +83,6 @@ public abstract class FlagWatcher {
return newList;
}
private WatchableObject processWatcher(WatchableObject watch, HashMap<Integer, Object> map) {
boolean doD = watch.d();
watch = new WatchableObject(watch.c(), watch.a(), watch.b());
if (!doD)
watch.a(false);
if (map.get(watch.a()) == null) {
return watch;
} else {
Object value = map.get(watch.a());
if (watch.b().getClass() != value.getClass()) {
watch.a(value);
try {
Field field = WatchableObject.class.getDeclaredField("a");
field.setAccessible(true);
field.set(watch, classTypes.get(value.getClass()));
} catch (Exception ex) {
ex.printStackTrace();
}
} else {
watch.a(value);
}
}
return watch;
}
public void displayName(boolean display) {
if ((Byte) getValue(6) != (display ? 1 : 0)) {
setValue(6, (byte) (display ? 1 : 0));