[evolution-data-server] Bug 793852 - Remove unused code after changes for bug 793466
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 793852 - Remove unused code after changes for bug 793466
- Date: Tue, 27 Feb 2018 09:13:41 +0000 (UTC)
commit f5d1dd610a2c22dfcf98b7957c55f9d55c99461f
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Tue Feb 27 10:14:27 2018 +0100
Bug 793852 - Remove unused code after changes for bug 793466
src/libedataserver/e-source.c | 23 -----------------------
1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/libedataserver/e-source.c b/src/libedataserver/e-source.c
index 0c95e3b..bb78db8 100644
--- a/src/libedataserver/e-source.c
+++ b/src/libedataserver/e-source.c
@@ -865,13 +865,6 @@ source_idle_connection_status_change_cb (gpointer user_data)
if (g_source_is_destroyed (g_main_current_source ()))
return FALSE;
- /* If the ESource is still initializing itself in a different
- * thread, skip the signal emission and try again on the next
- * main loop iteration. This is a busy wait but it should be
- * a very short wait. */
- if (!source->priv->initialized)
- return TRUE;
-
g_mutex_lock (&source->priv->connection_status_change_lock);
if (source->priv->connection_status_change != NULL) {
g_source_unref (source->priv->connection_status_change);
@@ -1032,13 +1025,6 @@ source_idle_changed_cb (gpointer user_data)
if (g_source_is_destroyed (g_main_current_source ()))
return FALSE;
- /* If the ESource is still initializing itself in a different
- * thread, skip the signal emission and try again on the next
- * main loop iteration. This is a busy wait but it should be
- * a very short wait. */
- if (!source->priv->initialized)
- return TRUE;
-
g_mutex_lock (&source->priv->changed_lock);
if (source->priv->changed != NULL) {
g_source_unref (source->priv->changed);
@@ -2032,15 +2018,6 @@ source_initable_init (GInitable *initable,
source->priv->uid = e_util_generate_uid ();
}
- /* Try to avoid a spurious "changed" emission. */
- g_mutex_lock (&source->priv->changed_lock);
- if (source->priv->changed != NULL) {
- g_source_destroy (source->priv->changed);
- g_source_unref (source->priv->changed);
- source->priv->changed = NULL;
- }
- g_mutex_unlock (&source->priv->changed_lock);
-
source->priv->initialized = TRUE;
return success;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]