Skip to content

Commit e355c79

Browse files
committed
Fix merge conflict.
1 parent 547e5f6 commit e355c79

File tree

1 file changed

+0
-12
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+0
-12
lines changed

graalpython/com.oracle.graal.python.cext/src/capi.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -199,18 +199,6 @@ void* native_to_java_exported(PyObject* obj) {
199199
return native_to_java(obj);
200200
}
201201

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-
214202
void* native_pointer_to_java(PyObject* obj) {
215203
if (obj == NULL) {
216204
return Py_NoValue;

0 commit comments

Comments
 (0)