From: Damien Riegel Date: Sat, 18 Jun 2016 20:36:12 +0000 (-0700) Subject: remove unused HEADER parameter in mh_commit_message X-Git-Tag: neomutt-20160822~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c082278deacfa64e1668785b942db571a89d0d0;p=neomutt remove unused HEADER parameter in mh_commit_message mh_commit_message is only called in one place with the header parameter set to NULL. To make the commit function consistent with other mailboxes, which only takes ctx and msg as parameters, remove this unused parameter. --- diff --git a/mh.c b/mh.c index 417957134..d4e9c1dde 100644 --- a/mh.c +++ b/mh.c @@ -1620,9 +1620,9 @@ static int _mh_commit_message (CONTEXT * ctx, MESSAGE * msg, HEADER * hdr, return 0; } -int mh_commit_message (CONTEXT * ctx, MESSAGE * msg, HEADER * hdr) +int mh_commit_message (CONTEXT * ctx, MESSAGE * msg) { - return _mh_commit_message (ctx, msg, hdr, 1); + return _mh_commit_message (ctx, msg, NULL, 1); } diff --git a/mx.c b/mx.c index 01ac627e7..9b5cd11dc 100644 --- a/mx.c +++ b/mx.c @@ -1371,7 +1371,7 @@ int mx_commit_message (MESSAGE *msg, CONTEXT *ctx) case MUTT_MH: { - r = mh_commit_message (ctx, msg, NULL); + r = mh_commit_message (ctx, msg); break; } } diff --git a/mx.h b/mx.h index 370313aa1..2c12d707d 100644 --- a/mx.h +++ b/mx.h @@ -58,7 +58,7 @@ int mh_check_empty (const char *); int maildir_check_empty (const char *); int maildir_commit_message (CONTEXT *, MESSAGE *, HEADER *); -int mh_commit_message (CONTEXT *, MESSAGE *, HEADER *); +int mh_commit_message (CONTEXT *, MESSAGE *); FILE *maildir_open_find_message (const char *, const char *);