[evolution-data-server] Remove g_thread_init() calls.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove g_thread_init() calls.
- Date: Wed, 26 Oct 2011 19:43:27 +0000 (UTC)
commit c487d002e89ab71327de97181daf4907041b91e8
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Oct 26 15:33:19 2011 -0400
Remove g_thread_init() calls.
g_type_init() already calls it, and has for several GLib releases.
.../libedata-book/e-book-backend-sqlitedb-test.c | 3 ---
calendar/backends/file/e-cal-backend-file.c | 3 ---
camel/camel-index-control.c | 3 ---
camel/camel-text-index.c | 3 ---
camel/providers/imapx/test-imapx.c | 3 ---
camel/tests/lib/camel-test.c | 4 ----
tests/libebook/client/client-test-utils.c | 3 ---
tests/libecal/client/client-test-utils.c | 3 ---
tests/libedataserverui/test-client-examine-auth.c | 4 ----
tests/libedataserverui/test-name-selector.c | 3 ---
10 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-sqlitedb-test.c b/addressbook/libedata-book/e-book-backend-sqlitedb-test.c
index e887abb..2525268 100644
--- a/addressbook/libedata-book/e-book-backend-sqlitedb-test.c
+++ b/addressbook/libedata-book/e-book-backend-sqlitedb-test.c
@@ -197,9 +197,6 @@ main (gint argc,
gchar *argv[])
{
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
if (argc != 2) {
g_print ("Please enter a path to store the cache \n");
diff --git a/calendar/backends/file/e-cal-backend-file.c b/calendar/backends/file/e-cal-backend-file.c
index b2bee69..ebcd8f4 100644
--- a/calendar/backends/file/e-cal-backend-file.c
+++ b/calendar/backends/file/e-cal-backend-file.c
@@ -3800,9 +3800,6 @@ main (gint argc,
FILE * fin = NULL;
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
context = g_option_context_new ("- test utility for e-d-s file backend");
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
diff --git a/camel/camel-index-control.c b/camel/camel-index-control.c
index 89ed82e..0191754 100644
--- a/camel/camel-index-control.c
+++ b/camel/camel-index-control.c
@@ -127,9 +127,6 @@ gint main (gint argc, gchar **argv)
if (argc < 2)
do_usage (argv[0]);
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
camel_init (NULL, 0);
if (!strcmp(argv[1], "compress"))
diff --git a/camel/camel-text-index.c b/camel/camel-text-index.c
index f5b69fe..d9a6b2f 100644
--- a/camel/camel-text-index.c
+++ b/camel/camel-text-index.c
@@ -1862,9 +1862,6 @@ main (gint argc,
printf ("Camel text index tester!\n");
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
camel_init (NULL, 0);
idx = (CamelIndex *)camel_text_index_new ("textindex", O_CREAT|O_RDWR|O_TRUNC);
diff --git a/camel/providers/imapx/test-imapx.c b/camel/providers/imapx/test-imapx.c
index de9a455..79e3392 100644
--- a/camel/providers/imapx/test-imapx.c
+++ b/camel/providers/imapx/test-imapx.c
@@ -36,9 +36,6 @@ main (gint argc,
}
uri = argv[1];
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
system ("rm -rf /tmp/test-camel-imapx");
camel_init ("/tmp/test-camel-imapx", TRUE);
camel_provider_init ();
diff --git a/camel/tests/lib/camel-test.c b/camel/tests/lib/camel-test.c
index 743c658..050ef31 100644
--- a/camel/tests/lib/camel-test.c
+++ b/camel/tests/lib/camel-test.c
@@ -103,10 +103,6 @@ camel_test_init (gint argc,
setup = 1;
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- /* yeah, we do need ot thread init, even though camel isn't compiled with enable threads */
- g_thread_init (NULL);
- #endif
path = g_strdup_printf ("/tmp/camel-test");
if (mkdir (path, 0700) == -1 && errno != EEXIST)
diff --git a/tests/libebook/client/client-test-utils.c b/tests/libebook/client/client-test-utils.c
index f778333..376c039 100644
--- a/tests/libebook/client/client-test-utils.c
+++ b/tests/libebook/client/client-test-utils.c
@@ -67,9 +67,6 @@ main_initialize (void)
return;
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
initialized = TRUE;
}
diff --git a/tests/libecal/client/client-test-utils.c b/tests/libecal/client/client-test-utils.c
index a39c994..1642ca0 100644
--- a/tests/libecal/client/client-test-utils.c
+++ b/tests/libecal/client/client-test-utils.c
@@ -63,9 +63,6 @@ main_initialize (void)
return;
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
initialized = TRUE;
}
diff --git a/tests/libedataserverui/test-client-examine-auth.c b/tests/libedataserverui/test-client-examine-auth.c
index e94e33b..74ba5d8 100644
--- a/tests/libedataserverui/test-client-examine-auth.c
+++ b/tests/libedataserverui/test-client-examine-auth.c
@@ -412,10 +412,6 @@ gint
main (gint argc,
gchar **argv)
{
- g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
gtk_init (&argc, &argv);
e_passwords_init ();
diff --git a/tests/libedataserverui/test-name-selector.c b/tests/libedataserverui/test-name-selector.c
index bab8e4c..8c79f6e 100644
--- a/tests/libedataserverui/test-name-selector.c
+++ b/tests/libedataserverui/test-name-selector.c
@@ -81,9 +81,6 @@ main (gint argc,
gchar **argv)
{
gtk_init (&argc, &argv);
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
camel_init (NULL, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]