[balsa] mailbox: Remove an unused function



commit 44eb5a632f192b89ef47705447d3e8fd40bb399b
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Feb 17 20:27:39 2019 -0500

    mailbox: Remove an unused function
    
    * libbalsa/mailbox.c: remove an unused function 'libbalsa_mailbox_valid';
    * libbalsa/mailbox.h: do not export it.

 ChangeLog          |  5 +++++
 libbalsa/mailbox.c | 12 ------------
 libbalsa/mailbox.h |  1 -
 3 files changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a74d12ec9..6d631d75c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-02-17  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       * libbalsa/mailbox.c: remove an unused function;
+       * libbalsa/mailbox.h: do not export it.
+
 2019-02-16  Peter Bloomfield  <pbloomfield bellsouth net>
 
        mailbox-local: Do not leak LibBalsaMessage
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index 564347a46..b95152eee 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -610,18 +610,6 @@ libbalsa_mailbox_open(LibBalsaMailbox * mailbox, GError **err)
     return retval;
 }
 
-/* libbalsa_mailbox_is_valid:
-   mailbox is valid when:
-   a). it is closed, b). it is open and has proper client context.
-*/
-gboolean
-libbalsa_mailbox_is_valid(LibBalsaMailbox * mailbox)
-{
-    if(mailbox->open_ref == 0) return TRUE;
-    if(MAILBOX_CLOSED(mailbox)) return FALSE;
-    return TRUE;
-}
-
 gboolean
 libbalsa_mailbox_is_open(LibBalsaMailbox *mailbox)
 {
diff --git a/libbalsa/mailbox.h b/libbalsa/mailbox.h
index 890812b58..96c76231f 100644
--- a/libbalsa/mailbox.h
+++ b/libbalsa/mailbox.h
@@ -343,7 +343,6 @@ LibBalsaMailbox *libbalsa_mailbox_new_from_config(const gchar *prefix,
  */
 /* XXX these need to return a value if they failed */
 gboolean libbalsa_mailbox_open(LibBalsaMailbox * mailbox, GError **err);
-gboolean libbalsa_mailbox_is_valid(LibBalsaMailbox * mailbox);
 gboolean libbalsa_mailbox_is_open(LibBalsaMailbox *mailbox);
 void libbalsa_mailbox_close(LibBalsaMailbox * mailbox, gboolean expunge);
 


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