Skip to content

Commit 5dcf31c

Browse files
committed
Remove unused methods in Scopes
1 parent 8474f87 commit 5dcf31c

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

ownlang-core/src/main/java/com/annimon/ownlang/lib/Scope.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ public final void setVariable(String name, Value value) {
4444
variables.put(name, value);
4545
}
4646

47-
public final void removeVariable(String name) {
48-
variables.remove(name);
49-
}
50-
5147
public Map<String, Value> getVariables() {
5248
return variables;
5349
}

ownlang-core/src/main/java/com/annimon/ownlang/lib/ScopeHandler.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,6 @@ public static void defineVariableInCurrentScope(String name, Value value) {
129129
}
130130
}
131131

132-
public static void removeVariable(String name) {
133-
synchronized (lock) {
134-
findScope(name).scope.removeVariable(name);
135-
}
136-
}
137-
138132
private static ScopeFindData findScope(String name) {
139133
Scope current = scope;
140134
do {

0 commit comments

Comments
 (0)