Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f72c8cc

Browse files
author
Rickard Holmberg
committed
Remove unused internal Runtime.GetBoundArgTuple
1 parent b29ae4d commit f72c8cc

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/runtime/runtime.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -378,29 +378,6 @@ internal static void CheckExceptionOccurred()
378378
}
379379
}
380380

381-
internal static IntPtr GetBoundArgTuple(IntPtr obj, IntPtr args)
382-
{
383-
if (PyObject_TYPE(args) != PyTupleType)
384-
{
385-
Exceptions.SetError(Exceptions.TypeError, "tuple expected");
386-
return IntPtr.Zero;
387-
}
388-
int size = PyTuple_Size(args);
389-
IntPtr items = PyTuple_New(size + 1);
390-
PyTuple_SetItem(items, 0, obj);
391-
XIncref(obj);
392-
393-
for (var i = 0; i < size; i++)
394-
{
395-
IntPtr item = PyTuple_GetItem(args, i);
396-
XIncref(item);
397-
PyTuple_SetItem(items, i + 1, item);
398-
}
399-
400-
return items;
401-
}
402-
403-
404381
internal static IntPtr ExtendTuple(IntPtr t, params IntPtr[] args)
405382
{
406383
int size = PyTuple_Size(t);

0 commit comments

Comments
 (0)