[balsa] Remove unused code
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Remove unused code
- Date: Sat, 27 May 2017 23:03:19 +0000 (UTC)
commit f6461c66bf1005fb80738cdc8c0c6c9483fcd13a
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sat May 27 18:48:39 2017 -0400
Remove unused code
* libbalsa/misc.c: libbalsa_guess_pop_server and
libbalsa_guess_ldif_file are not used.
* libbalsa/misc.h: do not export libbalsa_guess_ldif_file.
* libbalsa/libbalsa.h: do not export libbalsa_guess_pop_server.
ChangeLog | 9 +++++++++
libbalsa/libbalsa.h | 1 -
libbalsa/misc.c | 31 -------------------------------
libbalsa/misc.h | 2 --
4 files changed, 9 insertions(+), 34 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2446a9a..b1f98e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2017-05-27 Peter Bloomfield <pbloomfield bellsouth net>
+ Remove unused code
+
+ * libbalsa/misc.c: libbalsa_guess_pop_server and
+ libbalsa_guess_ldif_file are not used.
+ * libbalsa/misc.h: do not export libbalsa_guess_ldif_file.
+ * libbalsa/libbalsa.h: do not export libbalsa_guess_pop_server.
+
+2017-05-27 Peter Bloomfield <pbloomfield bellsouth net>
+
Clean up file finder code
* libbalsa/files.c (balsa_file_finder): remove unused arguments.
diff --git a/libbalsa/libbalsa.h b/libbalsa/libbalsa.h
index 73ed79a..3e537f7 100644
--- a/libbalsa/libbalsa.h
+++ b/libbalsa/libbalsa.h
@@ -127,7 +127,6 @@ gchar *libbalsa_guess_mail_spool(void);
gboolean libbalsa_is_sending_mail(void);
void libbalsa_wait_for_sending_thread(gint max_seconds);
-gchar *libbalsa_guess_pop_server(void);
gchar *libbalsa_guess_imap_server(void);
gchar *libbalsa_guess_ldap_server(void);
diff --git a/libbalsa/misc.c b/libbalsa/misc.c
index 7b04fff..c05da73 100644
--- a/libbalsa/misc.c
+++ b/libbalsa/misc.c
@@ -1025,11 +1025,6 @@ qualified_hostname(const char *name)
}
-gchar *libbalsa_guess_pop_server()
-{
- return qualified_hostname(POP_SERVER);
-}
-
gchar *libbalsa_guess_imap_server()
{
return qualified_hostname(IMAP_SERVER);
@@ -1089,32 +1084,6 @@ gchar *libbalsa_guess_ldap_name()
return NULL;
}
-gchar *libbalsa_guess_ldif_file()
-{
- int i;
- gchar *ldif;
-
- static const gchar *guesses[] = {
- "address.ldif",
- ".address.ldif",
- "address-book.ldif",
- ".address-book.ldif",
- ".addressbook.ldif",
- NULL
- };
-
- for (i = 0; guesses[i] != NULL; i++) {
- ldif = g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,
- guesses[i], NULL);
- if (g_file_test(ldif, G_FILE_TEST_EXISTS))
- return ldif;
-
- g_free(ldif);
- }
- return g_strconcat(g_get_home_dir(), G_DIR_SEPARATOR_S,
- guesses[i], NULL); /* *** Or NULL */
-
-}
gboolean
libbalsa_path_is_below_dir(const gchar * path, const gchar * dir)
diff --git a/libbalsa/misc.h b/libbalsa/misc.h
index 677394c..b2639e6 100644
--- a/libbalsa/misc.h
+++ b/libbalsa/misc.h
@@ -148,8 +148,6 @@ void libbalsa_assure_balsa_dir(void);
gchar *libbalsa_guess_ldap_base(void);
gchar *libbalsa_guess_ldap_name(void);
-gchar *libbalsa_guess_ldif_file(void);
-
gboolean libbalsa_ldap_exists(const gchar *server);
gboolean libbalsa_path_is_below_dir(const gchar * path, const gchar * dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]