From aa802ba23bad92f40f780d691661974bfbc54b80 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 1 Oct 2013 11:20:35 -0400 Subject: [PATCH] Remove unused camel_session_build_password_prompt(). --- camel/camel-session.c | 46 --------------------------------- camel/camel-session.h | 4 --- docs/reference/camel/camel-sections.txt | 1 - 3 files changed, 51 deletions(-) diff --git a/camel/camel-session.c b/camel/camel-session.c index 91ab755..4f6e4b2 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -1416,52 +1416,6 @@ camel_session_lookup_addressbook (CamelSession *session, } /** - * camel_session_build_password_prompt: - * @type: account type (e.g. "IMAP") - * @user: user name for the account - * @host: host name for the account - * - * Constructs a localized password prompt from @type, @user and @host, - * suitable for passing to camel_session_get_password(). The resulting - * string contains markup tags. Use g_free() to free it. - * - * Returns: a newly-allocated password prompt string - * - * Since: 2.22 - **/ -gchar * -camel_session_build_password_prompt (const gchar *type, - const gchar *user, - const gchar *host) -{ - gchar *user_markup; - gchar *host_markup; - gchar *prompt; - - g_return_val_if_fail (type != NULL, NULL); - g_return_val_if_fail (user != NULL, NULL); - g_return_val_if_fail (host != NULL, NULL); - - /* Add bold tags to the "user" and "host" strings. We use - * separate strings here to avoid putting markup tags in the - * translatable string below. */ - user_markup = g_markup_printf_escaped ("%s", user); - host_markup = g_markup_printf_escaped ("%s", host); - - prompt = g_strdup_printf ( - /* Translators: The first argument is the account type - * (e.g. "IMAP"), the second is the user name, and the - * third is the host name. */ - _("Please enter the %s password for %s on host %s."), - type, user_markup, host_markup); - - g_free (user_markup); - g_free (host_markup); - - return prompt; -} - -/** * camel_session_get_online: * @session: a #CamelSession * diff --git a/camel/camel-session.h b/camel/camel-session.h index 5ef18a5..413abb7 100644 --- a/camel/camel-session.h +++ b/camel/camel-session.h @@ -219,10 +219,6 @@ GProxyResolver * camel_session_ref_proxy_resolver (CamelSession *session, CamelService *service); -gchar * camel_session_build_password_prompt - (const gchar *type, - const gchar *user, - const gchar *host); gboolean camel_session_get_online (CamelSession *session); void camel_session_set_online (CamelSession *session, gboolean online); diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt index 5aeb955..1f03279 100644 --- a/docs/reference/camel/camel-sections.txt +++ b/docs/reference/camel/camel-sections.txt @@ -2328,7 +2328,6 @@ camel_session_forget_password camel_session_alert_user camel_session_trust_prompt camel_session_ref_proxy_resolver -camel_session_build_password_prompt camel_session_get_online camel_session_set_online camel_session_get_filter_driver -- 2.7.4