cleanup undef

This commit is contained in:
gnembon committed 2019-11-22 00:23:50 -04:00
1 parent 24c1ee8d3d
commit 6413c17657
5 files changed
+63 -25

No files matched your search

+1 -15
View File
@@ -18,7 +18,7 @@ public class Context
static final int LOCALIZATION = 8;
static final int LVALUE = 9;
private Map<String, LazyValue> variables = new HashMap<>();
public Map<String, LazyValue> variables = new HashMap<>();
protected ScriptHost host;
@@ -56,20 +56,6 @@ public class Context
void delVariable(String variable)
{
if (variable.startsWith("global_"))
{
host.globalVariables.remove(variable);
return;
}
variables.remove(variable);
}
void clearAll(String variable)
{
if (variable.startsWith("global_"))
{
host.globalVariables.remove(variable);
return;
}
variables.remove(variable);
}