[evolution-data-server] Remove unused camel_session_thread_wait().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove unused camel_session_thread_wait().
- Date: Sat, 23 Apr 2011 16:36:44 +0000 (UTC)
commit 084760431d2a24f155df025ecfc7ecfae421111d
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Apr 22 20:22:34 2011 -0400
Remove unused camel_session_thread_wait().
camel/camel-session.c | 42 --------------------------
camel/camel-session.h | 4 --
docs/reference/camel/camel-sections.txt | 1 -
docs/reference/camel/tmpl/camel-session.sgml | 9 -----
4 files changed, 0 insertions(+), 56 deletions(-)
---
diff --git a/camel/camel-session.c b/camel/camel-session.c
index 64ccd95..8ee61ce 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -369,23 +369,6 @@ session_thread_queue (CamelSession *session,
}
static void
-session_thread_wait (CamelSession *session,
- gint id)
-{
- gint wait;
-
- /* we just busy wait, only other alternative is to setup a reply port? */
- do {
- camel_session_lock (session, CAMEL_SESSION_THREAD_LOCK);
- wait = g_hash_table_lookup (session->priv->thread_active, GINT_TO_POINTER (id)) != NULL;
- camel_session_unlock (session, CAMEL_SESSION_THREAD_LOCK);
- if (wait) {
- g_usleep (20000);
- }
- } while (wait);
-}
-
-static void
session_thread_status (CamelSession *session,
CamelSessionThreadMsg *msg,
const gchar *text,
@@ -410,7 +393,6 @@ camel_session_class_init (CamelSessionClass *class)
class->thread_msg_new = session_thread_msg_new;
class->thread_msg_free = session_thread_msg_free;
class->thread_queue = session_thread_queue;
- class->thread_wait = session_thread_wait;
class->thread_status = session_thread_status;
g_object_class_install_property (
@@ -996,30 +978,6 @@ camel_session_thread_queue (CamelSession *session,
}
/**
- * camel_session_thread_wait:
- * @session: a #CamelSession
- * @id: id of the operation to wait on
- *
- * Wait on an operation to complete (by id).
- **/
-void
-camel_session_thread_wait (CamelSession *session,
- gint id)
-{
- CamelSessionClass *class;
-
- g_return_if_fail (CAMEL_IS_SESSION (session));
-
- if (id == -1)
- return;
-
- class = CAMEL_SESSION_GET_CLASS (session);
- g_return_if_fail (class->thread_wait != NULL);
-
- class->thread_wait (session, id);
-}
-
-/**
* camel_session_get_check_junk:
* @session: a #CamelSession
*
diff --git a/camel/camel-session.h b/camel/camel-session.h
index 7883eb0..25e4294 100644
--- a/camel/camel-session.h
+++ b/camel/camel-session.h
@@ -132,8 +132,6 @@ struct _CamelSessionClass {
gint (*thread_queue) (CamelSession *session,
CamelSessionThreadMsg *msg,
gint flags);
- void (*thread_wait) (CamelSession *session,
- gint id);
void (*thread_status) (CamelSession *session,
CamelSessionThreadMsg *msg,
const gchar *text,
@@ -227,8 +225,6 @@ void camel_session_thread_msg_free (CamelSession *session,
gint camel_session_thread_queue (CamelSession *session,
CamelSessionThreadMsg *msg,
gint flags);
-void camel_session_thread_wait (CamelSession *session,
- gint id);
gboolean camel_session_get_network_available
(CamelSession *session);
void camel_session_set_network_available
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index 35fbc1b..6375105 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -1931,7 +1931,6 @@ camel_session_set_check_junk
camel_session_thread_msg_new
camel_session_thread_msg_free
camel_session_thread_queue
-camel_session_thread_wait
camel_session_get_network_available
camel_session_set_network_available
camel_session_get_junk_headers
diff --git a/docs/reference/camel/tmpl/camel-session.sgml b/docs/reference/camel/tmpl/camel-session.sgml
index 6b94667..2303f7b 100644
--- a/docs/reference/camel/tmpl/camel-session.sgml
+++ b/docs/reference/camel/tmpl/camel-session.sgml
@@ -276,15 +276,6 @@ CamelSession
@Returns:
-<!-- ##### FUNCTION camel_session_thread_wait ##### -->
-<para>
-
-</para>
-
- session:
- id:
-
-
<!-- ##### FUNCTION camel_session_get_network_available ##### -->
<para>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]