[evolution] e-passwords: Remove unused functions.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] e-passwords: Remove unused functions.
- Date: Mon, 17 Dec 2012 00:06:54 +0000 (UTC)
commit f1ca58d40a5a005aa5fa751959edbe4ec5f2d22f
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Dec 16 16:08:03 2012 -0500
e-passwords: Remove unused functions.
e_passwords_cancel()
e_passwords_clear_passwords()
e_passwords_forget_passwords()
e_passwords_shutdown()
doc/reference/libeutil/libeutil-sections.txt | 4 -
e-util/e-passwords.c | 91 --------------------------
e-util/e-passwords.h | 8 +--
3 files changed, 1 insertions(+), 102 deletions(-)
---
diff --git a/doc/reference/libeutil/libeutil-sections.txt b/doc/reference/libeutil/libeutil-sections.txt
index 2c0ef0a..05194a8 100644
--- a/doc/reference/libeutil/libeutil-sections.txt
+++ b/doc/reference/libeutil/libeutil-sections.txt
@@ -2375,15 +2375,11 @@ EPanedPrivate
<FILE>e-passwords</FILE>
<TITLE>Password Utilities (Legacy)</TITLE>
e_passwords_init
-e_passwords_shutdown
-e_passwords_cancel
e_passwords_set_online
e_passwords_remember_password
e_passwords_add_password
e_passwords_get_password
e_passwords_forget_password
-e_passwords_forget_passwords
-e_passwords_clear_passwords
EPasswordsRememberType
e_passwords_ask_password
</SECTION>
diff --git a/e-util/e-passwords.c b/e-util/e-passwords.c
index bf4cfc1..1f2d3b2 100644
--- a/e-util/e-passwords.c
+++ b/e-util/e-passwords.c
@@ -211,23 +211,6 @@ ep_msg_send (EPassMsg *msg)
/* the functions that actually do the work */
static void
-ep_clear_passwords (EPassMsg *msg)
-{
- GError *error = NULL;
-
- /* Find all Evolution passwords and delete them. */
- secret_password_clear_sync (
- &e_passwords_schema, NULL, &error,
- "application", "Evolution", NULL);
-
- if (error != NULL)
- g_propagate_error (&msg->error, error);
-
- if (!msg->noreply)
- e_flag_set (msg->done);
-}
-
-static void
ep_remember_password (EPassMsg *msg)
{
gchar *password;
@@ -652,52 +635,6 @@ e_passwords_init (void)
}
/**
- * e_passwords_cancel:
- *
- * Cancel any outstanding password operations and close any dialogues
- * currently being shown.
- **/
-void
-e_passwords_cancel (void)
-{
- EPassMsg *msg;
-
- G_LOCK (passwords);
- while ((msg = g_queue_pop_head (&message_queue)) != NULL)
- e_flag_set (msg->done);
- G_UNLOCK (passwords);
-
- if (password_dialog)
- gtk_dialog_response (password_dialog, GTK_RESPONSE_CANCEL);
-}
-
-/**
- * e_passwords_shutdown:
- *
- * Cleanup routine to call before exiting.
- **/
-void
-e_passwords_shutdown (void)
-{
- EPassMsg *msg;
-
- G_LOCK (passwords);
-
- while ((msg = g_queue_pop_head (&message_queue)) != NULL)
- e_flag_set (msg->done);
-
- if (password_cache != NULL) {
- g_hash_table_destroy (password_cache);
- password_cache = NULL;
- }
-
- G_UNLOCK (passwords);
-
- if (password_dialog != NULL)
- gtk_dialog_response (password_dialog, GTK_RESPONSE_CANCEL);
-}
-
-/**
* e_passwords_set_online:
* @state:
*
@@ -715,34 +652,6 @@ e_passwords_set_online (gint state)
}
/**
- * e_passwords_forget_passwords:
- *
- * Forgets all cached passwords, in memory and on disk.
- **/
-void
-e_passwords_forget_passwords (void)
-{
- EPassMsg *msg = ep_msg_new (ep_clear_passwords);
-
- ep_msg_send (msg);
- ep_msg_free (msg);
-}
-
-/**
- * e_passwords_clear_passwords:
- *
- * Forgets all disk cached passwords for the component.
- **/
-void
-e_passwords_clear_passwords (const gchar *unused)
-{
- EPassMsg *msg = ep_msg_new (ep_clear_passwords);
-
- ep_msg_send (msg);
- ep_msg_free (msg);
-}
-
-/**
* e_passwords_remember_password:
* @key: the key
*
diff --git a/e-util/e-passwords.h b/e-util/e-passwords.h
index 83a4a7e..2fa3458 100644
--- a/e-util/e-passwords.h
+++ b/e-util/e-passwords.h
@@ -37,20 +37,14 @@ G_BEGIN_DECLS
* initialization is now implicit when you call any of the functions
* below, although this is only correct if the functions are called
* from the main thread.
- *
- * e_passwords_shutdown should be called at exit time to synch the
- * password on-disk storage, and to free up in-memory storage. */
+ */
void e_passwords_init (void);
-void e_passwords_shutdown (void);
-void e_passwords_cancel (void);
void e_passwords_set_online (gint state);
void e_passwords_remember_password (const gchar *unused, const gchar *key);
void e_passwords_add_password (const gchar *key, const gchar *passwd);
gchar *e_passwords_get_password (const gchar *unused, const gchar *key);
void e_passwords_forget_password (const gchar *unused, const gchar *key);
-void e_passwords_forget_passwords (void);
-void e_passwords_clear_passwords (const gchar *unused);
typedef enum {
E_PASSWORDS_REMEMBER_NEVER,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]