Skip to content

Another shot at #495 #503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 26, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unused internal Runtime.GetBoundArgTuple
  • Loading branch information
Rickard Holmberg committed Jun 21, 2017
commit f72c8cc8cda53cd14ce9adc13db1284e50d82eae
23 changes: 0 additions & 23 deletions src/runtime/runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,29 +378,6 @@ internal static void CheckExceptionOccurred()
}
}

internal static IntPtr GetBoundArgTuple(IntPtr obj, IntPtr args)
{
if (PyObject_TYPE(args) != PyTupleType)
{
Exceptions.SetError(Exceptions.TypeError, "tuple expected");
return IntPtr.Zero;
}
int size = PyTuple_Size(args);
IntPtr items = PyTuple_New(size + 1);
PyTuple_SetItem(items, 0, obj);
XIncref(obj);

for (var i = 0; i < size; i++)
{
IntPtr item = PyTuple_GetItem(args, i);
XIncref(item);
PyTuple_SetItem(items, i + 1, item);
}

return items;
}


internal static IntPtr ExtendTuple(IntPtr t, params IntPtr[] args)
{
int size = PyTuple_Size(t);
Expand Down