Skip to content

Commit 6108612

Browse files
committed
Remove PyCall::Tuple#inspect
1 parent 4c30ff1 commit 6108612

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

ext/pycall/pycall.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,20 +1902,6 @@ pycall_tuple_to_a(VALUE obj)
19021902
return pycall_pytuple_to_a(pyobj);
19031903
}
19041904

1905-
static VALUE
1906-
pycall_tuple_inspect(VALUE obj)
1907-
{
1908-
PyObject *pyobj, *repr;
1909-
1910-
pyobj = pycall_pyobject_wrapper_check_get_pyobj_ptr(obj, Py_API(PyTuple_Type));
1911-
repr = Py_API(PyObject_Repr)(pyobj);
1912-
if (!repr) {
1913-
pycall_pyerror_fetch_and_raise("PyObject_Repr in pycall_tuple_inspect");
1914-
}
1915-
1916-
return pycall_pystring_to_ruby(pyobj);
1917-
}
1918-
19191905
static VALUE
19201906
pycall_pyerror_s_occurred_p(VALUE klass)
19211907
{
@@ -1944,7 +1930,6 @@ init_tuple(void)
19441930
rb_define_singleton_method(cTuple, "new", pycall_tuple_s_new, -1);
19451931
rb_define_method(cTuple, "length", pycall_tuple_length, 0);
19461932
rb_define_method(cTuple, "to_a", pycall_tuple_to_a, 0);
1947-
rb_define_method(cTuple, "inspect", pycall_tuple_inspect, 0);
19481933
}
19491934

19501935
void

0 commit comments

Comments
 (0)