Skip to content

Commit b6e2119

Browse files
committed
Remove obsolete C ext builtin 'PyTruffle_Set_Ptr'.
1 parent 74fb7fc commit b6e2119

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,26 +1336,6 @@ private GetClassNode getClassNode() {
13361336
}
13371337
}
13381338

1339-
@Builtin(name = "PyTruffle_Set_Ptr", fixedNumOfPositionalArgs = 2)
1340-
@GenerateNodeFactory
1341-
abstract static class PyTruffle_Set_Ptr extends NativeBuiltin {
1342-
1343-
@Specialization
1344-
int doPythonObject(PythonAbstractObject nativeWrapper, TruffleObject ptr) {
1345-
return doNativeWrapper(nativeWrapper.getNativeWrapper(), ptr);
1346-
}
1347-
1348-
@Specialization
1349-
int doNativeWrapper(PythonNativeWrapper nativeWrapper, TruffleObject ptr) {
1350-
if (nativeWrapper.isNative()) {
1351-
PythonContext.getSingleNativeContextAssumption().invalidate();
1352-
} else {
1353-
nativeWrapper.setNativePointer(ptr);
1354-
}
1355-
return 0;
1356-
}
1357-
}
1358-
13591339
@Builtin(name = "PyTruffle_Set_SulongType", fixedNumOfPositionalArgs = 2)
13601340
@GenerateNodeFactory
13611341
abstract static class PyTruffle_Set_SulongType extends NativeBuiltin {

0 commit comments

Comments
 (0)