[evolution-ews] Remove g_thread_init() calls.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Remove g_thread_init() calls.
- Date: Wed, 26 Oct 2011 19:44:01 +0000 (UTC)
commit 8384f87b691573e144d3a823a3d1da4576a1c45f
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Oct 26 15:35:52 2011 -0400
Remove g_thread_init() calls.
g_type_init() already calls it, and has for several GLib releases.
src/addressbook/e-book-backend-sqlitedb-test.c | 3 ---
src/addressbook/ews-oab-decoder.c | 3 ---
src/addressbook/lzx/ews-oal-decompress.c | 3 ---
src/server/tests/test-autocompletion.c | 3 ---
src/server/tests/test-connection.c | 3 ---
src/server/tests/test-createfolder.c | 3 ---
src/server/tests/test-cuditem.c | 3 ---
src/server/tests/test-deletefolder.c | 3 ---
src/server/tests/test-getattachment.c | 3 ---
src/server/tests/test-syncfolder.c | 3 ---
10 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-sqlitedb-test.c b/src/addressbook/e-book-backend-sqlitedb-test.c
index 8cf02c5..d87dc2c 100644
--- a/src/addressbook/e-book-backend-sqlitedb-test.c
+++ b/src/addressbook/e-book-backend-sqlitedb-test.c
@@ -194,9 +194,6 @@ gint
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/src/addressbook/ews-oab-decoder.c b/src/addressbook/ews-oab-decoder.c
index d9f5d04..bf2260d 100644
--- a/src/addressbook/ews-oab-decoder.c
+++ b/src/addressbook/ews-oab-decoder.c
@@ -1018,9 +1018,6 @@ main (gint argc, gchar *argv [])
struct _db_data data;
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
if (argc != 3) {
g_print ("Pass the oab filename and cache dir as argument \n");
diff --git a/src/addressbook/lzx/ews-oal-decompress.c b/src/addressbook/lzx/ews-oal-decompress.c
index a8db8e6..729f04d 100644
--- a/src/addressbook/lzx/ews-oal-decompress.c
+++ b/src/addressbook/lzx/ews-oal-decompress.c
@@ -265,9 +265,6 @@ main (int argc, char *argv [])
}
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
if (oal_decompress_v4_full_detail_file (argv [1], argv [2], NULL))
g_print ("Successfully decompressed \n");
diff --git a/src/server/tests/test-autocompletion.c b/src/server/tests/test-autocompletion.c
index 3efd1c0..25c0e72 100644
--- a/src/server/tests/test-autocompletion.c
+++ b/src/server/tests/test-autocompletion.c
@@ -108,9 +108,6 @@ autocompletion_tests_run ()
g_print ("Testing autocompletion... \n");
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
main_loop = g_main_loop_new (NULL, TRUE);
g_idle_add ((GSourceFunc) idle_cb, NULL);
diff --git a/src/server/tests/test-connection.c b/src/server/tests/test-connection.c
index a653b16..5d0a45c 100644
--- a/src/server/tests/test-connection.c
+++ b/src/server/tests/test-connection.c
@@ -167,9 +167,6 @@ idle_cb (gpointer data)
void connection_tests_run ()
{
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
main_loop = g_main_loop_new (NULL, TRUE);
g_idle_add ((GSourceFunc) idle_cb, NULL);
diff --git a/src/server/tests/test-createfolder.c b/src/server/tests/test-createfolder.c
index 81dac10..8852a09 100644
--- a/src/server/tests/test-createfolder.c
+++ b/src/server/tests/test-createfolder.c
@@ -101,9 +101,6 @@ void
createfolder_tests_run ()
{
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
main_loop = g_main_loop_new (NULL, TRUE);
g_idle_add ((GSourceFunc) idle_cb, NULL);
diff --git a/src/server/tests/test-cuditem.c b/src/server/tests/test-cuditem.c
index 5d50e3a..98a4985 100644
--- a/src/server/tests/test-cuditem.c
+++ b/src/server/tests/test-cuditem.c
@@ -130,9 +130,6 @@ idle_cb (gpointer data)
void cuditem_tests_run ()
{
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
main_loop = g_main_loop_new (NULL, TRUE);
g_idle_add ((GSourceFunc) idle_cb, NULL);
diff --git a/src/server/tests/test-deletefolder.c b/src/server/tests/test-deletefolder.c
index afa5473..1555901 100644
--- a/src/server/tests/test-deletefolder.c
+++ b/src/server/tests/test-deletefolder.c
@@ -96,9 +96,6 @@ deletefolder_tests_run (gconstpointer data)
g_return_if_fail (*fid != NULL);
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
main_loop = g_main_loop_new (NULL, TRUE);
g_idle_add ((GSourceFunc) idle_cb, fid);
diff --git a/src/server/tests/test-getattachment.c b/src/server/tests/test-getattachment.c
index 07071e2..13cda1a 100644
--- a/src/server/tests/test-getattachment.c
+++ b/src/server/tests/test-getattachment.c
@@ -109,9 +109,6 @@ idle_cb (gpointer data)
void get_attachments_tests_run ()
{
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
main_loop = g_main_loop_new (NULL, TRUE);
g_idle_add ((GSourceFunc) idle_cb, NULL);
diff --git a/src/server/tests/test-syncfolder.c b/src/server/tests/test-syncfolder.c
index 1849215..e2dbf59 100644
--- a/src/server/tests/test-syncfolder.c
+++ b/src/server/tests/test-syncfolder.c
@@ -245,9 +245,6 @@ void op_tests_run ()
g_print ("Testing operations... \n");
g_type_init ();
- #if !GLIB_CHECK_VERSION(2,31,0)
- g_thread_init (NULL);
- #endif
main_loop = g_main_loop_new (NULL, TRUE);
g_idle_add ((GSourceFunc) idle_cb, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]