summaryrefslogtreecommitdiffstats
path: root/mbox.c
diff options
context:
space:
mode:
authorDamien Riegel <damien.riegel@gmail.com>2016-05-12 12:41:01 -0700
committerDamien Riegel <damien.riegel@gmail.com>2016-05-12 12:41:01 -0700
commit740c8600dbb82a03f99370dd293a026ec5d56492 (patch)
tree87b7e10eba8b9ed30b4d85c8cb2852ca336b6930 /mbox.c
parent3758d8741e3b26828ac023882a8f08c5243551c4 (diff)
rename mbox_close_mailbox to mx_close_mailbox_append and move it
mbox_close_mailbox was used as the counterpart of mx_open_mailbox_append. To make things clearer, rename it mx_close_mailbox_append. As it is only used in mx.c, move it there and make it static.
Diffstat (limited to 'mbox.c')
-rw-r--r--mbox.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/mbox.c b/mbox.c
index 74f45d53..83c9cd87 100644
--- a/mbox.c
+++ b/mbox.c
@@ -1069,15 +1069,6 @@ bail: /* Come here in case of disaster */
return rc;
}
-/* close a mailbox opened in write-mode */
-int mbox_close_mailbox (CONTEXT *ctx)
-{
- mx_unlock_file (ctx->path, fileno (ctx->fp), 1);
- mutt_unblock_signals ();
- mx_fastclose_mailbox (ctx);
- return 0;
-}
-
int mutt_reopen_mailbox (CONTEXT *ctx, int *index_hint)
{
int (*cmp_headers) (const HEADER *, const HEADER *) = NULL;