Skip to content

Commit f5fd4d0

Browse files
committed
remove obsolete PythonOptions.isWithThread
1 parent 1c82fb9 commit f5fd4d0

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/PythonLanguage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected boolean patchContext(PythonContext context, Env newEnv) {
193193

194194
@Override
195195
protected PythonContext createContext(Env env) {
196-
assert this.isWithThread == null || this.isWithThread == PythonOptions.isWithThread() : "conflicting thread options in the same language!";
196+
assert this.isWithThread == null || this.isWithThread == PythonOptions.isWithThread(env) : "conflicting thread options in the same language!";
197197
this.isWithThread = PythonOptions.isWithThread(env);
198198
ensureHomeInOptions(env);
199199
Python3Core newCore = new Python3Core(new PythonParserImpl());

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/SysConfigModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class SysConfigModuleBuiltins extends PythonBuiltins {
6767
@Override
6868
public void initialize(PythonCore core) {
6969
super.initialize(core);
70-
STATIC_CONFIG_OPTIONS.put("WITH_THREAD", PythonOptions.isWithThread() ? 1 : 0);
70+
STATIC_CONFIG_OPTIONS.put("WITH_THREAD", PythonOptions.isWithThread(core.getContext().getEnv()) ? 1 : 0);
7171
}
7272

7373
@Override

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PythonOptions.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,6 @@ public static int getMinLazyStringLength() {
204204
return getOption(PythonLanguage.getContextRef().get(), MinLazyStringLength);
205205
}
206206

207-
public static boolean isWithThread() {
208-
return getOption(PythonLanguage.getContextRef().get(), WithThread);
209-
}
210-
211207
public static boolean isWithThread(Env env) {
212208
return getOption(env, WithThread);
213209
}

0 commit comments

Comments
 (0)