[evolution-kolab] libekolab: removed util function for populating KolabSettingsHandler



commit 35dc054f2a3142da9060d46d88db8192ece9c209
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Fri Oct 26 19:25:00 2012 +0200

    libekolab: removed util function for populating KolabSettingsHandler
    
    * the values previously written into the KolabSettingsHandler
      are now retrieved by KolabSettingsHandler itself (via its
      new EBackend property)

 src/libekolab/kolab-util-backend.c |   52 ------------------------------------
 src/libekolab/kolab-util-backend.h |    1 -
 2 files changed, 0 insertions(+), 53 deletions(-)
---
diff --git a/src/libekolab/kolab-util-backend.c b/src/libekolab/kolab-util-backend.c
index 5ff77ad..df46aa0 100644
--- a/src/libekolab/kolab-util-backend.c
+++ b/src/libekolab/kolab-util-backend.c
@@ -308,58 +308,6 @@ kolab_util_backend_modtime_set_on_ecalcomp (ECalComponent *ecalcomp)
 	e_cal_component_set_last_modified (ecalcomp, &itt);
 } /* kolab_util_backend_modtime_set_on_ecalcomp () */
 
-void
-kolab_util_backend_prepare_settings (KolabSettingsHandler *ksettings,
-                                     ESource *esource,
-                                     const gchar *password,
-                                     const gchar *sourcename,
-                                     const KolabSyncStrategyID *sync_value)
-{
-	/* Note: Currently (2.30), there is no good way of returning errors from
-	 * the backend to the frontends. So this helper function simply notifies
-	 * on stdout/stderr and proceeds.
-	 */
-	const gchar *prop_str = NULL;
-
-	GError *error = NULL;
-	g_debug ("%s()[%u] called.", __func__, __LINE__);
-	if (esource != NULL) {
-		prop_str = e_source_get_uid (esource);
-		(void)kolab_settings_handler_set_char_field (ksettings,
-		                                             KOLAB_SETTINGS_HANDLER_CHAR_FIELD_ESOURCE_UID,
-		                                             g_strdup (prop_str),
-		                                             &error);
-		if (error != NULL) {
-			g_warning ("%s()[%u] error: %s", __func__, __LINE__, error->message);
-			g_error_free (error);
-			error = NULL;
-		}
-	}
-	if (password != NULL) {
-		(void)kolab_settings_handler_set_char_field (ksettings,
-		                                             KOLAB_SETTINGS_HANDLER_CHAR_FIELD_KOLAB_USER_PASSWORD,
-		                                             g_strdup (password),
-		                                             &error);
-		if (error != NULL) {
-			g_warning ("%s()[%u] error: %s", __func__, __LINE__, error->message);
-			g_error_free (error);
-			error = NULL;
-		}
-	}
-	if (sync_value != NULL) {
-		(void)kolab_settings_handler_set_value (ksettings,
-		                                        KOLAB_SETTINGS_HANDLER_TBL_SYNCSTRATEGY,
-		                                        sourcename,
-		                                        GUINT_TO_POINTER (*sync_value),
-		                                        &error);
-		if (error != NULL) {
-			g_warning ("%s()[%u] error: %s", __func__, __LINE__, error->message);
-			g_error_free (error);
-			error = NULL;
-		}
-	}
-} /* kolab_util_backend_prepare_settings () */
-
 gboolean
 kolab_util_backend_sqlite_db_new_open (KolabUtilSqliteDb **kdb,
                                        KolabSettingsHandler *ksettings,
diff --git a/src/libekolab/kolab-util-backend.h b/src/libekolab/kolab-util-backend.h
index e216702..8f5f008 100644
--- a/src/libekolab/kolab-util-backend.h
+++ b/src/libekolab/kolab-util-backend.h
@@ -85,7 +85,6 @@ void kolab_util_backend_koma_table_cleanup_cb (gpointer data, GObject *object, g
 
 void kolab_util_backend_modtime_set_on_econtact (EContact *econtact);
 void kolab_util_backend_modtime_set_on_ecalcomp (ECalComponent *ecalcomp);
-void kolab_util_backend_prepare_settings (KolabSettingsHandler *ksettings, ESource *esource, const gchar *password, const gchar *sourcename, const KolabSyncStrategyID *sync_value);
 
 gboolean kolab_util_backend_sqlite_db_new_open (KolabUtilSqliteDb **kdb, KolabSettingsHandler *ksettings, const gchar *dbfilename, GError **err);
 



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