| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b29ae4d commit f72c8cc
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -378,29 +378,6 @@ internal static void CheckExceptionOccurred() | |||
| 378 | 378 | } | |
| 379 | 379 | } | |
| 380 | 380 | ||
| 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 | - | ||
| 404 | 381 | internal static IntPtr ExtendTuple(IntPtr t, params IntPtr[] args) | |
| 405 | 382 | { | |
| 406 | 383 | int size = PyTuple_Size(t); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments