[PATCH] Remove unused function in mailbox.c



	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
--- 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);


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