]> granicus.if.org Git - neomutt/commitdiff
remove some obsolete HAVE_ tests
authorDamien Riegel <damien.riegel@gmail.com>
Mon, 24 Apr 2017 21:16:59 +0000 (17:16 -0400)
committerRichard Russon <rich@flatcap.org>
Sat, 29 Apr 2017 13:45:55 +0000 (14:45 +0100)
Delete tests against some defines because there is nothing in configure
to generate those defines:

     HAVE_ALLOCA_H
     HAVE_GNUTLS_OPENSSL_H
     HAVE_PGP
     HAVE_REGCOMP
     HAVE_SMIME

They are like `#if 0`, only harder to spot!

hdrline.c
imap/message.c
mutt_ssl_gnutls.c
nntp.c
version.c

index fae24f8e14422dcfc8e6f9b9818f7e1a2b5aeceb..5b47e534851dd08f1fe58efb7d9a4952332ba404 100644 (file)
--- a/hdrline.c
+++ b/hdrline.c
@@ -28,9 +28,6 @@
 #include "mutt_curses.h"
 #include "mutt_idna.h"
 #include "sort.h"
-#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
 #ifdef USE_NOTMUCH
 #include "mutt_notmuch.h"
 #endif
index c413f0b25945ca4ea120a7a69db0d93269711c35..dff389f7bc767bf453f5992fea06af574bb70503 100644 (file)
@@ -26,9 +26,6 @@
 #include "mutt.h"
 #include "bcache.h"
 #include "mx.h"
-#ifdef HAVE_PGP
-#include "pgp.h"
-#endif
 #ifdef USE_HCACHE
 #include "hcache.h"
 #endif
@@ -877,11 +874,6 @@ parsemsg:
 
   h->content->length = ftell(msg->fp) - h->content->offset;
 
-/* This needs to be done in case this is a multipart message */
-#if defined(HAVE_PGP) || defined(HAVE_SMIME)
-  h->security = crypt_query(h->content);
-#endif
-
   mutt_clear_error();
   rewind(msg->fp);
   HEADER_DATA(h)->parsed = true;
index 6674c81b7b5bfccb02d19857fa695c1fd83b2e1d..f020f9c7db4839b22aaab8593bfb00dc043b078a 100644 (file)
@@ -25,9 +25,6 @@
 #include "mutt_regex.h"
 #include "mutt_socket.h"
 #include "mutt_ssl.h"
-#ifdef HAVE_GNUTLS_OPENSSL_H
-#include <gnutls/openssl.h>
-#endif
 
 /* certificate error bitmap values */
 #define CERTERR_VALID 0
diff --git a/nntp.c b/nntp.c
index ef3926d1e91e7d59d2dddb9671b8df268da45728..e2884f0016e433d5176071b7ad3667cd511b5172 100644 (file)
--- a/nntp.c
+++ b/nntp.c
 #ifdef USE_SSL
 #include "mutt_ssl.h"
 #endif
-#ifdef HAVE_PGP
-#include "pgp.h"
-#endif
-#ifdef HAVE_SMIME
-#include "smime.h"
-#endif
 #ifdef USE_HCACHE
 #include "hcache.h"
 #endif
index bb0b3a23e3b334dd86cd4421c413a6a72ba5efeb..35544a8a504022142d870bb016656e806315ecf0 100644 (file)
--- a/version.c
+++ b/version.c
@@ -194,11 +194,7 @@ static struct compile_options comp_opts[] = {
 #else
   { "HAVE_META", 0 },
 #endif
-#ifdef HAVE_REGCOMP
   { "HAVE_REGCOMP", 1 },
-#else
-  { "HAVE_REGCOMP", 0 },
-#endif
 #ifdef HAVE_RESIZETERM
   { "HAVE_RESIZETERM", 1 },
 #else