diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2023-01-27 15:18:41 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2023-01-27 15:18:48 +0100 |
commit | a4adb1eed16037f9f32b7e1e4fcc53905654bac9 (patch) | |
tree | 823c537af8a061dbfc2cd3bbf4b8260e0fd365ea | |
parent | b1c8f70fa9b148b5fed77a6a1cacdbcf0c733601 (diff) | |
download | pygobject-3-42.tar.gz |
Revert "pygi: Fix girepository deprecation warnings"pygobject-3-42
This reverts commit b1c8f70fa9b148b5fed77a6a1cacdbcf0c733601.
This was reverted on master too, see 4b421597d1885c725cbc
-rw-r--r-- | gi/pygi-closure.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c index 49622777..5504f241 100644 --- a/gi/pygi-closure.c +++ b/gi/pygi-closure.c @@ -24,10 +24,6 @@ #include "pygi-ccallback.h" #include "pygi-info.h" -#ifndef GI_CHECK_VERSION -#define GI_CHECK_VERSION(x,y,z) 0 -#endif - extern PyObject *_PyGIDefaultArgPlaceholder; typedef struct _PyGICallbackCache @@ -638,13 +634,8 @@ void _pygi_invoke_closure_free (gpointer data) { PyGICClosure* invoke_closure = (PyGICClosure *) data; -#if GI_CHECK_VERSION(1, 72, 0) - g_callable_info_destroy_closure (invoke_closure->info, - invoke_closure->closure); -#else g_callable_info_free_closure (invoke_closure->info, invoke_closure->closure); -#endif if (invoke_closure->info) g_base_info_unref ( (GIBaseInfo*) invoke_closure->info); @@ -682,13 +673,8 @@ _pygi_make_native_closure (GICallableInfo* info, Py_XINCREF (closure->user_data); fficlosure = -#if GI_CHECK_VERSION(1, 72, 0) - g_callable_info_create_closure (info, &closure->cif, _pygi_closure_handle, - closure); -#else g_callable_info_prepare_closure (info, &closure->cif, _pygi_closure_handle, closure); -#endif closure->closure = fficlosure; /* Give the closure the information it needs to determine when |