]> granicus.if.org Git - neomutt/commitdiff
remove unnecessary preprocessor symbol
authorRichard Russon <rich@flatcap.org>
Fri, 22 Dec 2017 04:12:26 +0000 (04:12 +0000)
committerRichard Russon <rich@flatcap.org>
Thu, 28 Dec 2017 13:27:13 +0000 (13:27 +0000)
MUTT_CRYPTHOOK is always present.

hook.c

diff --git a/hook.c b/hook.c
index 048360a850c4ad2404a6252efe09a7b2cc41466f..86dff6035360739a4bcae7cd19f3e24d45afc812 100644 (file)
--- a/hook.c
+++ b/hook.c
@@ -228,13 +228,8 @@ int mutt_parse_hook(struct Buffer *buf, struct Buffer *s, unsigned long data,
   {
     /* Hooks not allowing full patterns: Check syntax of regex */
     rx = mutt_mem_malloc(sizeof(regex_t));
-#ifdef MUTT_CRYPTHOOK
     rc = REGCOMP(rx, NONULL(pattern.data),
                  ((data & (MUTT_CRYPTHOOK | MUTT_CHARSETHOOK | MUTT_ICONVHOOK)) ? REG_ICASE : 0));
-#else
-    rc = REGCOMP(rx, NONULL(pattern.data),
-                 (data & (MUTT_CHARSETHOOK | MUTT_ICONVHOOK)) ? REG_ICASE : 0);
-#endif /* MUTT_CRYPTHOOK */
     if (rc != 0)
     {
       regerror(rc, rx, err->data, err->dsize);