[yelp] Remove g_type_init() calls



commit 587437c045d7fa283c8fb21ad1c3aa63a8e54819
Author: Gergely Polonkai <gergely polonkai eu>
Date:   Wed Jan 28 12:10:14 2015 +0000

    Remove g_type_init() calls
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737518

 docs/libyelp/Makefile.am |    2 --
 tests/test-bz2.c         |    2 --
 tests/test-lzma.c        |    2 --
 tests/test-magic.c       |    2 --
 tests/test-transform.c   |    2 --
 tests/test-uri.c         |    1 -
 6 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/docs/libyelp/Makefile.am b/docs/libyelp/Makefile.am
index f33bff3..4586fcc 100644
--- a/docs/libyelp/Makefile.am
+++ b/docs/libyelp/Makefile.am
@@ -6,8 +6,6 @@ DOC_MAIN_SGML_FILE = libyelp-docs.xml
 
 SCAN_OPTIONS = --deprecated-guards="G_DISABLE_DEPRECATED" --rebuild-types
 
-SCANGOBJ_OPTIONS = --type-init-func="g_type_init();"
-
 DOC_SOURCE_DIR = $(top_srcdir)/libyelp
 
 GTKDOC_CFLAGS =                                                \
diff --git a/tests/test-bz2.c b/tests/test-bz2.c
index 06f583d..bcc7e63 100644
--- a/tests/test-bz2.c
+++ b/tests/test-bz2.c
@@ -41,8 +41,6 @@ main (int argc, char **argv)
         return 1;
     }
 
-    g_type_init ();
-
     file = g_file_new_for_path (argv[1]);
     file_stream = g_file_read (file, NULL, NULL);
     converter = yelp_bz2_decompressor_new ();
diff --git a/tests/test-lzma.c b/tests/test-lzma.c
index 56412b9..6f02643 100644
--- a/tests/test-lzma.c
+++ b/tests/test-lzma.c
@@ -41,8 +41,6 @@ main (int argc, char **argv)
         return 1;
     }
 
-    g_type_init ();
-
     file = g_file_new_for_path (argv[1]);
     file_stream = g_file_read (file, NULL, NULL);
     converter = yelp_lzma_decompressor_new ();
diff --git a/tests/test-magic.c b/tests/test-magic.c
index 8ae0eb9..ecacd14 100644
--- a/tests/test-magic.c
+++ b/tests/test-magic.c
@@ -41,8 +41,6 @@ main (int argc, char **argv)
         return 1;
     }
 
-    g_type_init ();
-
     file = g_file_new_for_path (argv[1]);
     file_stream = g_file_read (file, NULL, NULL);
     converter = yelp_magic_decompressor_new ();
diff --git a/tests/test-transform.c b/tests/test-transform.c
index 6b93b96..88de0fe 100644
--- a/tests/test-transform.c
+++ b/tests/test-transform.c
@@ -117,8 +117,6 @@ main (gint argc, gchar **argv)
     gchar *stylesheet;
     gchar *file;
 
-    g_type_init ();
-
     context = g_option_context_new ("[STYLESHEET] FILE");
     g_option_context_add_main_entries (context, options, NULL);
     g_option_context_parse (context, &argc, &argv, NULL);
diff --git a/tests/test-uri.c b/tests/test-uri.c
index 3867e60..73106e3 100644
--- a/tests/test-uri.c
+++ b/tests/test-uri.c
@@ -223,7 +223,6 @@ main (int argc, char **argv)
     YelpUri *parent = NULL;
     YelpUri *uri = NULL;
 
-    g_type_init ();
     g_log_set_always_fatal (G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL);
         
     if (argc < 2) {


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