[pygobject] Drop foreign GVariant registration/support



commit 3408a151e49d9520f54ad9bc04f620c7777125ec
Author: Martin Pitt <martinpitt gnome org>
Date:   Wed Nov 14 11:09:33 2012 +0100

    Drop foreign GVariant registration/support
    
    This is dead code. We have tests for GVariant in and out method arguments,
    callback arguments and return values, properties, etc to ensure that this stays
    working.

 gi/Makefile.am             |    2 -
 gi/pygi-foreign-gvariant.c |   63 --------------------------------------------
 gi/pygi-foreign-gvariant.h |   41 ----------------------------
 gi/pygi-foreign.c          |    8 +-----
 4 files changed, 1 insertions(+), 113 deletions(-)
---
diff --git a/gi/Makefile.am b/gi/Makefile.am
index cc45189..4d93133 100644
--- a/gi/Makefile.am
+++ b/gi/Makefile.am
@@ -42,8 +42,6 @@ _gi_la_SOURCES = \
 	pygi-info.h \
 	pygi-foreign.c \
 	pygi-foreign.h \
-	pygi-foreign-gvariant.c \
-	pygi-foreign-gvariant.h \
 	pygi-struct.c \
 	pygi-struct.h \
 	pygi-source.c \
diff --git a/gi/pygi-foreign.c b/gi/pygi-foreign.c
index 14d20af..ef5abaa 100644
--- a/gi/pygi-foreign.c
+++ b/gi/pygi-foreign.c
@@ -26,8 +26,8 @@
 #  include <config.h>
 #endif
 
+#include "pygobject.h"
 #include "pygi-foreign.h"
-#include "pygi-foreign-gvariant.h"
 
 #include <girepository.h>
 
@@ -45,12 +45,6 @@ static void
 init_foreign_structs ()
 {
     foreign_structs = g_ptr_array_new ();
-
-    pygi_register_foreign_struct ("GLib",
-                                  "Variant",
-                                  g_variant_to_arg,
-                                  g_variant_from_arg,
-                                  g_variant_release_foreign);
 }
 
 static PyGIForeignStruct *



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