mirror of
https://github.com/aNNiMON/Own-Programming-Language-Tutorial.git
synced 2024-09-20 00:34:20 +03:00
Remove unused methods in Scopes
This commit is contained in:
parent
8474f87358
commit
5dcf31c106
@ -44,10 +44,6 @@ sealed class Scope permits RootScope {
|
|||||||
variables.put(name, value);
|
variables.put(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void removeVariable(String name) {
|
|
||||||
variables.remove(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Map<String, Value> getVariables() {
|
public Map<String, Value> getVariables() {
|
||||||
return variables;
|
return variables;
|
||||||
}
|
}
|
||||||
|
@ -129,12 +129,6 @@ public final class ScopeHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void removeVariable(String name) {
|
|
||||||
synchronized (lock) {
|
|
||||||
findScope(name).scope.removeVariable(name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static ScopeFindData findScope(String name) {
|
private static ScopeFindData findScope(String name) {
|
||||||
Scope current = scope;
|
Scope current = scope;
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user