* Removed useless code / formatted DefineList

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9494 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 13 years ago
parent b007fd672a
commit 5730bf67d8
  1. 13
      engine/src/core/com/jme3/shader/DefineList.java

@ -58,9 +58,6 @@ public class DefineList implements Savable {
oc.write(keys, "keys", null); oc.write(keys, "keys", null);
oc.write(vals, "vals", null); oc.write(vals, "vals", null);
// for compatability only with older versions
oc.write(compiled, "compiled", null);
} }
public void read(JmeImporter im) throws IOException{ public void read(JmeImporter im) throws IOException{
@ -71,8 +68,6 @@ public class DefineList implements Savable {
for (int i = 0; i < keys.length; i++){ for (int i = 0; i < keys.length; i++){
defines.put(keys[i], vals[i]); defines.put(keys[i], vals[i]);
} }
compiled = ic.readString("compiled", null);
} }
public void clear() { public void clear() {
@ -81,17 +76,9 @@ public class DefineList implements Savable {
} }
public String get(String key){ public String get(String key){
// I do not see the point of forcing a rebuild on get()
// so I'm commenting it out. -pspeed
//compiled = null;
return defines.get(key); return defines.get(key);
} }
// public void set(String key, String val){
// compiled = null;
// defines.put(key, val);
// }
public boolean set(String key, VarType type, Object val){ public boolean set(String key, VarType type, Object val){
if (val == null){ if (val == null){
defines.remove(key); defines.remove(key);

Loading…
Cancel
Save