[evolution-kolab/experimental: 1/6] Remove kolab_session_get_password().



commit 514554237a7256fb3a855886d975a203898ae6e0
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Aug 28 23:00:05 2012 -0400

    Remove kolab_session_get_password().
    
    Older API, only used for PGP and other miscellaneous corner cases.
    CamelSession.authenticate_sync() is all we need to implement here.

 src/libekolab/camel-kolab-session.c |   28 ----------------------------
 1 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/src/libekolab/camel-kolab-session.c b/src/libekolab/camel-kolab-session.c
index 9fceba9..7ed6507 100644
--- a/src/libekolab/camel-kolab-session.c
+++ b/src/libekolab/camel-kolab-session.c
@@ -138,33 +138,6 @@ pk11_password (PK11SlotInfo *slot,
 /*----------------------------------------------------------------------------*/
 /* class functions */
 
-static gchar*
-kolab_session_get_password (CamelSession *self,
-                            CamelService *service,
-                            const gchar *prompt,
-                            const gchar *item,
-                            guint32 flags,
-                            GError **err)
-{
-	/* TODO rework to CamelSettings */
-
-	CamelKolabSession *myself = NULL;
-	CamelKolabSessionPrivate *priv = NULL;
-
-	g_assert (CAMEL_IS_KOLAB_SESSION (self));
-	g_assert (CAMEL_IS_KOLAB_IMAPX_STORE (service));
-	g_return_val_if_fail (err == NULL || *err == NULL, NULL);
-
-	(void)prompt;
-	(void)item;
-	(void)flags;
-
-	myself = CAMEL_KOLAB_SESSION (self);
-	priv = CAMEL_KOLAB_SESSION_PRIVATE (myself);
-
-	return g_strdup (priv->passwd);
-}
-
 static gboolean
 kolab_session_forget_password (CamelSession *self,
                                CamelService *service,
@@ -345,7 +318,6 @@ camel_kolab_session_class_init (CamelKolabSessionClass *klass)
 	object_class->finalize = camel_kolab_session_finalize;
 
 	session_class->add_service = parent_class->add_service;
-	session_class->get_password = kolab_session_get_password;
 	session_class->forget_password = kolab_session_forget_password;
 	session_class->authenticate_sync = kolab_session_authenticate_sync;
 }



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