Skip to content

Commit 61d1b7c

Browse files
authored
Remove non-existent PInvoke functions (pythonnet#1205)
* Remove non-existent PInvoke functions * Remove PyObject_GC_New
2 parents 29978d8 + b07d1ca commit 61d1b7c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/runtime/runtime.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -846,12 +846,6 @@ internal static IntPtr Py_CompileStringFlags(string str, string file, int start,
846846
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]
847847
internal static extern IntPtr PyCFunction_Call(IntPtr func, IntPtr args, IntPtr kw);
848848

849-
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]
850-
internal static extern IntPtr PyInstance_New(IntPtr cls, IntPtr args, IntPtr kw);
851-
852-
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]
853-
internal static extern IntPtr PyInstance_NewRaw(IntPtr cls, IntPtr dict);
854-
855849
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]
856850
internal static extern IntPtr PyMethod_New(IntPtr func, IntPtr self, IntPtr cls);
857851

@@ -1018,9 +1012,6 @@ internal static long PyObject_Size(IntPtr pointer)
10181012
// Python buffer API
10191013
//====================================================================
10201014

1021-
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]
1022-
internal static extern int PyObject_CheckBuffer(IntPtr obj);
1023-
10241015
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]
10251016
internal static extern int PyObject_GetBuffer(IntPtr exporter, ref Py_buffer view, int flags);
10261017

@@ -1793,9 +1784,6 @@ internal static IntPtr PyType_GenericAlloc(IntPtr type, long n)
17931784
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]
17941785
internal static extern IntPtr _PyObject_GetDictPtr(IntPtr obj);
17951786

1796-
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]
1797-
internal static extern IntPtr PyObject_GC_New(IntPtr tp);
1798-
17991787
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]
18001788
internal static extern void PyObject_GC_Del(IntPtr tp);
18011789

0 commit comments

Comments
 (0)