[libsoup] Remove now-unnecessary g_type_init() calls



commit 07ad1e0728553817e7b9be9b4d192383760c201e
Author: Dan Winship <danw gnome org>
Date:   Mon Oct 22 19:00:13 2012 +0200

    Remove now-unnecessary g_type_init() calls

 tests/dns.c          |    2 --
 tests/get.c          |    2 --
 tests/simple-httpd.c |    1 -
 tests/simple-proxy.c |    1 -
 tests/test-utils.c   |    1 -
 5 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/tests/dns.c b/tests/dns.c
index f594064..ee9108e 100644
--- a/tests/dns.c
+++ b/tests/dns.c
@@ -40,8 +40,6 @@ main (int argc, char **argv)
 	if (argc < 2)
 		usage ();
 
-	g_type_init ();
-
 	for (i = 1; i < argc; i++) {
 		addr = soup_address_new (argv[i], 0);
 		if (!addr) {
diff --git a/tests/get.c b/tests/get.c
index 9672ded..15d6903 100644
--- a/tests/get.c
+++ b/tests/get.c
@@ -96,8 +96,6 @@ main (int argc, char **argv)
 	gboolean synchronous = FALSE, ntlm = FALSE;
 	int opt;
 
-	g_type_init ();
-
 	method = SOUP_METHOD_GET;
 
 	while ((opt = getopt (argc, argv, "c:dhnp:qs")) != -1) {
diff --git a/tests/simple-httpd.c b/tests/simple-httpd.c
index 41aa8a3..0f240ca 100644
--- a/tests/simple-httpd.c
+++ b/tests/simple-httpd.c
@@ -259,7 +259,6 @@ main (int argc, char **argv)
 	int ssl_port = SOUP_ADDRESS_ANY_PORT;
 	const char *ssl_cert_file = NULL, *ssl_key_file = NULL;
 
-	g_type_init ();
 	signal (SIGINT, quit);
 
 	while ((opt = getopt (argc, argv, "p:k:c:s:")) != -1) {
diff --git a/tests/simple-proxy.c b/tests/simple-proxy.c
index 0600e53..765fa5e 100644
--- a/tests/simple-proxy.c
+++ b/tests/simple-proxy.c
@@ -132,7 +132,6 @@ main (int argc, char **argv)
 	int port = SOUP_ADDRESS_ANY_PORT;
 	SoupAuthDomain *auth_domain = NULL;
 
-	g_type_init ();
 	signal (SIGINT, quit);
 
 	while ((opt = getopt (argc, argv, "ap:")) != -1) {
diff --git a/tests/test-utils.c b/tests/test-utils.c
index c34b0b7..fc5b18d 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -82,7 +82,6 @@ test_init (int argc, char **argv, GOptionEntry *entries)
 	GTlsBackend *tls_backend;
 
 	setlocale (LC_ALL, "");
-	g_type_init ();
 
 	name = strrchr (argv[0], '/');
 	if (!name++)



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