Skip to content

Commit 7cb00ee

Browse files
committed
Remove non-existent PInvoke functions
1 parent 5b989cb commit 7cb00ee

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/runtime/runtime.cs

Lines changed: 1 addition & 10 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,7 +1784,7 @@ 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)]
1787+
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl, EntryPoint = "_PyObject_GC_New")]
17971788
internal static extern IntPtr PyObject_GC_New(IntPtr tp);
17981789

17991790
[DllImport(_PythonDll, CallingConvention = CallingConvention.Cdecl)]

0 commit comments

Comments
 (0)