File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
graalpython/com.oracle.graal.python.cext/src Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -199,18 +199,6 @@ void* native_to_java_exported(PyObject* obj) {
199
199
return native_to_java (obj );
200
200
}
201
201
202
- void * to_java (PyObject * obj ) {
203
- PyObject * managed_obj = native_to_java (obj );
204
-
205
- // Since Python object respond to 'IS_POINTER' with true if there has already
206
- // been a 'TO_NATIVE' before, we need to first check if it is directly a Python
207
- // object to avoid conversion to a pointer.
208
- if (truffle_invoke (PY_TRUFFLE_CEXT , "is_python_object" , managed_obj )) {
209
- return managed_obj ;
210
- }
211
- return truffle_invoke (PY_TRUFFLE_CEXT , "to_java" , managed_obj );
212
- }
213
-
214
202
void * native_pointer_to_java (PyObject * obj ) {
215
203
if (obj == NULL ) {
216
204
return Py_NoValue ;
You can’t perform that action at this time.
0 commit comments