Skip to content

Commit 7e49d46

Browse files
committed
Remove unused assumption 'singleNativeContext'
1 parent e1f4afc commit 7e49d46

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@
169169
import com.oracle.graal.python.util.PythonUtils;
170170
import com.oracle.graal.python.util.ShutdownHook;
171171
import com.oracle.graal.python.util.Supplier;
172-
import com.oracle.truffle.api.Assumption;
173172
import com.oracle.truffle.api.CallTarget;
174173
import com.oracle.truffle.api.CompilerAsserts;
175174
import com.oracle.truffle.api.CompilerDirectives;
@@ -179,7 +178,6 @@
179178
import com.oracle.truffle.api.HostCompilerDirectives.InliningCutoff;
180179
import com.oracle.truffle.api.RootCallTarget;
181180
import com.oracle.truffle.api.ThreadLocalAction;
182-
import com.oracle.truffle.api.Truffle;
183181
import com.oracle.truffle.api.TruffleContext;
184182
import com.oracle.truffle.api.TruffleContext.Builder;
185183
import com.oracle.truffle.api.TruffleFile;
@@ -729,8 +727,6 @@ PythonThreadState getThreadState(Node n) {
729727

730728
private TruffleString soABI; // cache for soAPI
731729

732-
private static final Assumption singleNativeContext = Truffle.getRuntime().createAssumption("single native context assumption");
733-
734730
private static final class GlobalInterpreterLock extends ReentrantLock {
735731
private static final long serialVersionUID = 1L;
736732

@@ -2224,10 +2220,6 @@ public void initializeMainModule(TruffleString path) {
22242220
}
22252221
}
22262222

2227-
public static Assumption getSingleNativeContextAssumption() {
2228-
return singleNativeContext;
2229-
}
2230-
22312223
public boolean isExecutableAccessAllowed() {
22322224
return getEnv().isHostLookupAllowed() || isNativeAccessAllowed();
22332225
}

0 commit comments

Comments
 (0)