[pygobject] pygi-source.c: Drop dead code



commit 2e57530a27a44e94927d487cf2f2d9e543777654
Author: Martin Pitt <martinpitt gnome org>
Date:   Mon Nov 5 14:37:11 2012 +0100

    pygi-source.c: Drop dead code

 gi/pygi-source.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygi-source.c b/gi/pygi-source.c
index 591a445..73772bd 100644
--- a/gi/pygi-source.c
+++ b/gi/pygi-source.c
@@ -183,7 +183,6 @@ PyObject *
 pyg_source_set_callback(PyGObject *self_module, PyObject *args)
 {
     PyObject *self, *first, *callback, *cbargs = NULL, *data;
-    PyObject        *source_py_type;
     gint len;
 
     len = PyTuple_Size (args);
@@ -200,7 +199,6 @@ pyg_source_set_callback(PyGObject *self_module, PyObject *args)
     }
     Py_DECREF(first);
     
-    source_py_type = _pygi_type_import_by_name ("GLib", "Source");
     if (!pyg_boxed_check (self, G_TYPE_SOURCE)) {
 	PyErr_SetString(PyExc_TypeError, "first argument is not a GLib.Source");
 	return NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]