]> granicus.if.org Git - neomutt/commitdiff
remove unused HEADER parameter in mh_commit_message
authorDamien Riegel <damien.riegel@gmail.com>
Sat, 18 Jun 2016 20:36:12 +0000 (13:36 -0700)
committerDamien Riegel <damien.riegel@gmail.com>
Sat, 18 Jun 2016 20:36:12 +0000 (13:36 -0700)
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.

mh.c
mx.c
mx.h

diff --git a/mh.c b/mh.c
index 417957134819e7da327d91fea5d81e0aa709f385..d4e9c1ddec9ab51e3053f2b61b8f41ee7d29b056 100644 (file)
--- 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 01ac627e7a05969ca63170c2099e38b8455b9c99..9b5cd11dc062c5082916142165380c81d2fd5bbe 100644 (file)
--- 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 370313aa126d0d0cff356295eee007e8121b0e96..2c12d707d2488a399d33886b82dc0fece77c3cb5 100644 (file)
--- 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 *);