From 78162a2a1343a7caff3d43f457daa87475e6b926 Mon Sep 17 00:00:00 2001 From: David Adam Date: Sat, 25 Jul 2015 23:14:25 +0800 Subject: Initial pass with Include What You Use --- proc.cpp | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'proc.cpp') diff --git a/proc.cpp b/proc.cpp index 7caf2d6c..0a0da0a8 100644 --- a/proc.cpp +++ b/proc.cpp @@ -18,27 +18,16 @@ Some of the code in this file is based on code from the Glibc manual. #include #include #include -#include -#include +#include +#include #include - -#ifdef HAVE_SYS_IOCTL_H -#include -#endif +#include // IWYU pragma: keep - suggests instead +#include #include #include -#include #include -#if HAVE_NCURSES_H -#include -#elif HAVE_NCURSES_CURSES_H -#include -#else -#include -#endif - #if HAVE_TERM_H #include #elif HAVE_NCURSES_TERM_H @@ -53,7 +42,7 @@ Some of the code in this file is based on code from the Glibc manual. #include #endif -#include "fallback.h" +#include "fallback.h" // IWYU pragma: keep #include "util.h" #include "wutil.h" @@ -61,7 +50,6 @@ Some of the code in this file is based on code from the Glibc manual. #include "common.h" #include "reader.h" #include "sanity.h" -#include "env.h" #include "parser.h" #include "signal.h" #include "event.h" -- cgit v1.2.3