[pygobject] pyglib.c: Remove some dead code
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] pyglib.c: Remove some dead code
- Date: Fri, 27 Jul 2012 20:13:15 +0000 (UTC)
commit d0a561057b727ebcc1fd06fa6a3b48f2a1f8338e
Author: Martin Pitt <martinpitt gnome org>
Date: Fri Jul 27 20:50:30 2012 +0200
pyglib.c: Remove some dead code
Drop unused pyglib_gil_state_ensure_py23() and pyglib_gil_state_release_py23().
gi/_glib/pyglib.c | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/gi/_glib/pyglib.c b/gi/_glib/pyglib.c
index a077779..3508f55 100644
--- a/gi/_glib/pyglib.c
+++ b/gi/_glib/pyglib.c
@@ -171,24 +171,6 @@ _pyglib_notify_on_enabling_threads(PyGLibThreadsEnabledFunc callback)
}
#endif
-int
-pyglib_gil_state_ensure_py23 (void)
-{
-#ifdef DISABLE_THREADING
- return 0;
-#else
- return PyGILState_Ensure();
-#endif
-}
-
-void
-pyglib_gil_state_release_py23 (int flag)
-{
-#ifndef DISABLE_THREADING
- PyGILState_Release(flag);
-#endif
-}
-
/**
* pyglib_block_threads:
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]