cleanup undef
This commit is contained in:
1 parent
24c1ee8d3d
commit
6413c17657
5 files changed
+63
-25
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user