Skip to content

Commit

Permalink
iwyu: remove unnecessary headers
Browse files Browse the repository at this point in the history
  • Loading branch information
flatcap committed Jan 17, 2018
1 parent 835bb31 commit b1fafbd
Show file tree
Hide file tree
Showing 90 changed files with 61 additions and 168 deletions.
3 changes: 0 additions & 3 deletions alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
#include "mutt_curses.h"
#include "options.h"
#include "protos.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#endif

struct Address *mutt_lookup_alias(const char *s)
{
Expand Down
1 change: 0 additions & 1 deletion attach.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "mailbox.h"
#include "mime.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "mx.h"
#include "ncrypt/ncrypt.h"
#include "options.h"
Expand Down
1 change: 1 addition & 0 deletions bcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include "mutt/mutt.h"
#include "conn/conn.h"
#include "bcache.h"
#include "globals.h"
#include "mutt_account.h"
Expand Down
1 change: 0 additions & 1 deletion bcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#ifndef _MUTT_BCACHE_H
#define _MUTT_BCACHE_H

#include <stdbool.h>
#include <stdio.h>

struct Account;
Expand Down
4 changes: 1 addition & 3 deletions body.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
#include <limits.h>
#include <string.h>
#include <unistd.h>
#include "mutt/debug.h"
#include "mutt/memory.h"
#include "mutt/string2.h"
#include "mutt/mutt.h"
#include "body.h"
#include "header.h"
#include "mime.h"
Expand Down
5 changes: 0 additions & 5 deletions browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

#include "config.h"
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <grp.h>
Expand Down Expand Up @@ -49,7 +48,6 @@
#include "keymap.h"
#include "mailbox.h"
#include "mbyte.h"
#include "mutt_account.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "mx.h"
Expand All @@ -58,9 +56,6 @@
#include "protos.h"
#include "sort.h"
#include "url.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#endif
#ifdef USE_IMAP
#include "imap/imap.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion buffy.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <sys/stat.h>
#include <utime.h>
#include "mutt/mutt.h"
#include "mutt.h"
#include "conn/conn.h"
#include "buffy.h"
#include "context.h"
#include "envelope.h"
Expand Down
6 changes: 1 addition & 5 deletions commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@

#include "config.h"
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "mutt/mutt.h"
#include "conn/conn.h"
#include "mutt.h"
#include "address.h"
#include "alias.h"
Expand All @@ -56,9 +55,6 @@
#include "parameter.h"
#include "protos.h"
#include "sort.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#endif
#ifdef USE_IMAP
#include "imap/imap.h"
#endif
Expand Down
1 change: 1 addition & 0 deletions complete.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <string.h>
#include <sys/stat.h>
#include "mutt/mutt.h"
#include "conn/conn.h"
#include "globals.h"
#include "options.h"
#include "protos.h"
Expand Down
5 changes: 0 additions & 5 deletions compose.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,13 @@
#include "options.h"
#include "protos.h"
#include "sort.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#endif
#ifdef MIXMASTER
#include "remailer.h"
#endif
#ifdef USE_NNTP
#include "nntp.h"
#endif

struct Address;

static const char *There_are_no_attachments = N_("There are no attachments.");

#define CHECK_COUNT \
Expand Down
1 change: 0 additions & 1 deletion compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "compress.h"
#include "context.h"
#include "format_flags.h"
#include "globals.h"
#include "mailbox.h"
#include "mutt_curses.h"
#include "mx.h"
Expand Down
3 changes: 1 addition & 2 deletions conn/sasl_plain.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@

#include "config.h"
#include <stdio.h>
#include "mutt/base64.h"
#include "mutt/string2.h"
#include "mutt/mutt.h"

/**
* mutt_sasl_plain_msg - Create an SASL command
Expand Down
5 changes: 1 addition & 4 deletions conn/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include "mutt/debug.h"
#include "mutt/memory.h"
#include "mutt/message.h"
#include "mutt/string2.h"
#include "mutt/mutt.h"
#include "account.h"
#include "conn_globals.h"
#include "connection.h"
Expand Down
9 changes: 1 addition & 8 deletions conn/ssl_gnutls.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,10 @@
#include <regex.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include "mutt/date.h"
#include "mutt/debug.h"
#include "mutt/file.h"
#include "mutt/memory.h"
#include "mutt/message.h"
#include "mutt/regex3.h"
#include "mutt/string2.h"
#include "mutt/mutt.h"
#include "mutt.h"
#include "account.h"
#include "conn_globals.h"
Expand Down
8 changes: 1 addition & 7 deletions conn/tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,11 @@
#include "config.h"
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include "mutt/memory.h"
#include "mutt/message.h"
#include "mutt/signal2.h"
#include "mutt/string2.h"
#include "mutt/mutt.h"
#include "mutt.h"
#include "tunnel.h"
#include "account.h"
Expand Down
1 change: 0 additions & 1 deletion copy.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

#include <stdio.h>

struct Body;
struct Header;
struct Context;

Expand Down
4 changes: 0 additions & 4 deletions curs_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,12 @@
#include "enter_state.h"
#include "globals.h"
#include "header.h"
#include "mbyte.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "opcodes.h"
#include "options.h"
#include "pager.h"
#include "protos.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#endif
#ifdef HAVE_ISWBLANK
#include <wctype.h>
#endif
Expand Down
3 changes: 0 additions & 3 deletions curs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
#include "sort.h"
#include "tags.h"
#include "thread.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#endif
#ifdef HAVE_NCURSESW_NCURSES_H
#include <ncursesw/term.h>
#elif defined(HAVE_NCURSES_NCURSES_H)
Expand Down
4 changes: 0 additions & 4 deletions edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <string.h>
#include <sys/stat.h>
#include "mutt/mutt.h"
#include "mutt.h"
#include "address.h"
#include "alias.h"
#include "body.h"
Expand All @@ -42,9 +41,6 @@
#include "mutt_curses.h"
#include "options.h"
#include "protos.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#endif

/*
* SLcurses_waddnstr() can't take a "const char *", so this is only
Expand Down
4 changes: 1 addition & 3 deletions enter.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "config.h"
#include <stddef.h>
#include <limits.h>
#include <stdbool.h>
#include <string.h>
#include <wchar.h>
#include <wctype.h>
Expand All @@ -33,10 +33,8 @@
#include "globals.h"
#include "history.h"
#include "keymap.h"
#include "mbyte.h"
#include "mutt_curses.h"
#include "opcodes.h"
#include "options.h"
#include "protos.h"

/**
Expand Down
5 changes: 1 addition & 4 deletions envelope.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@

#include "config.h"
#include <stddef.h>
#include "mutt/buffer.h"
#include "mutt/memory.h"
#include "mutt/queue.h"
#include "mutt/string2.h"
#include "mutt/mutt.h"
#include "envelope.h"
#include "address.h"
#include "protos.h"
Expand Down
2 changes: 1 addition & 1 deletion envelope.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define _MUTT_ENVELOPE_H

#include <stdbool.h>
#include "mutt/list.h"
#include "mutt/mutt.h"

/**
* struct Envelope - The header of an email
Expand Down
1 change: 1 addition & 0 deletions filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#include "mutt/mutt.h"
#include "mutt.h"
#include "filter.h"
#include "mutt_curses.h"
Expand Down
3 changes: 0 additions & 3 deletions from.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@

#include "config.h"
#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "mutt/mutt.h"
#include "globals.h"
#include "protos.h"

/*
* A valid message separator looks like:
Expand Down
1 change: 0 additions & 1 deletion group.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "config.h"
#include <stdlib.h>
#include "mutt/mutt.h"
#include "mutt.h"
#include "group.h"
#include "address.h"
#include "globals.h"
Expand Down
3 changes: 0 additions & 3 deletions handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
#include "rfc1524.h"
#include "rfc3676.h"
#include "state.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#endif

#define BUFI_SIZE 1000
#define BUFO_SIZE 2000
Expand Down
4 changes: 0 additions & 4 deletions hdrline.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/

#include "config.h"
#include <ctype.h>
#include <locale.h>
#include <stdbool.h>
#include <stdio.h>
Expand All @@ -47,9 +46,6 @@
#include "sort.h"
#include "tags.h"
#include "thread.h"
#ifdef USE_NOTMUCH
#include "mutt_notmuch.h"
#endif

/**
* enum FlagChars - Index into the FlagChars variable ($flag_chars)
Expand Down
1 change: 0 additions & 1 deletion header.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

#include "config.h"
#include <ctype.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
Expand Down
2 changes: 0 additions & 2 deletions help.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include "config.h"
#include <stddef.h>
#include <ctype.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
Expand All @@ -31,7 +30,6 @@
#include "mutt/mutt.h"
#include "globals.h"
#include "keymap.h"
#include "mbyte.h"
#include "mutt_curses.h"
#include "opcodes.h"
#include "options.h"
Expand Down
1 change: 1 addition & 0 deletions history.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "mutt/mutt.h"
#include "history.h"
#include "globals.h"
#include "options.h"
#include "protos.h"

/* This history ring grows from 0..History, with last marking the
Expand Down
Loading

0 comments on commit b1fafbd

Please sign in to comment.