Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] Remove unused function in mailbox.c

0 views
Skip to first unread message

Emmanuel

unread,
May 14, 2002, 6:13:00 PM5/14/02
to

--Qxx1br4bt0+wmkIi
Content-Type: text/plain; format=flowed; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Hi all,
small patch to remove libbalsa_mailbox_sort func that is (AFAICS) never
used. Moreover I had a comment to the description of sync_backend_real to
say that this func is to be called with mailbox lock held.
Bye
Manu

--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="mailbox.patch.txt"

--- balsa/libbalsa/mailbox.c Fri Apr 26 17:50:21 2002
+++ ../test/balsa-cvs/balsa-current/libbalsa/mailbox.c Tue May 14 18:05:03 2002
@@ -561,14 +561,6 @@
mailbox->has_unread_messages = flag;
}

-void
-libbalsa_mailbox_sort(LibBalsaMailbox * mailbox, LibBalsaMailboxSort sort)
-{
- libbalsa_lock_mutt();
- mutt_sort_headers(CLIENT_CONTEXT(mailbox), sort);
- libbalsa_unlock_mutt();
-}
-
static void
libbalsa_mailbox_real_save_config(LibBalsaMailbox * mailbox,
const gchar * prefix)
@@ -844,6 +836,7 @@
* 1. emit the "messages-delete" signal, so the frontend can drop them
* from the BalsaIndex;
* 2. if delete == TRUE, delete them from the LibBalsaMailbox.
+ * Mailbox lock MUST BE HELD when calling this function
*/
static void
libbalsa_mailbox_sync_backend_real(LibBalsaMailbox * mailbox,
--- balsa/libbalsa/mailbox.h Fri Apr 26 17:50:21 2002
+++ ../test/balsa-cvs/balsa-current/libbalsa/mailbox.h Tue May 14 18:04:56 2002
@@ -161,12 +161,6 @@
FILE *libbalsa_mailbox_get_message_stream(LibBalsaMailbox * mailbox,
LibBalsaMessage * message);

-/*
- * sorting mailbox
- */
-void libbalsa_mailbox_sort(LibBalsaMailbox * mailbox,
- LibBalsaMailboxSort sort);
-
gint libbalsa_mailbox_sync_backend(LibBalsaMailbox * mailbox, gboolean delete);

void libbalsa_mailbox_check(LibBalsaMailbox * mailbox);

--Qxx1br4bt0+wmkIi--
_______________________________________________
balsa-list mailing list
balsa...@gnome.org
http://mail.gnome.org/mailman/listinfo/balsa-list

0 new messages