From 2ba32afa9a9aca7c82966b66bda16c3c3dbfbba5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 5 Mar 2021 08:39:42 +0000 Subject: Fix a bunch of really obvious unnecessary includes. --- include/base.h | 4 +--- include/configreader.h | 7 ------- include/event.h | 2 ++ include/hashcomp.h | 6 ------ include/inspstring.h | 2 -- include/modules.h | 1 - include/modules/regex.h | 2 +- include/protocol.h | 2 -- include/socketengine.h | 3 --- include/threadengine.h | 4 ---- include/threadengines/threadengine_pthread.h | 3 ++- include/threadengines/threadengine_win32.h | 1 - 12 files changed, 6 insertions(+), 31 deletions(-) (limited to 'include') diff --git a/include/base.h b/include/base.h index e36e5118c..98ce20fd5 100644 --- a/include/base.h +++ b/include/base.h @@ -28,10 +28,8 @@ #pragma once -#include -#include +#include "compat.h" #include -#include /** Dummy class to help enforce culls being parent-called up to classbase */ class CullResult diff --git a/include/configreader.h b/include/configreader.h index d14ab2944..66f7920be 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -30,14 +30,7 @@ #pragma once -#include -#include -#include -#include #include "inspircd.h" -#include "modules.h" -#include "socketengine.h" -#include "socket.h" #include "token_list.h" /** Structure representing a single \ in config */ diff --git a/include/event.h b/include/event.h index d3b779216..baa24d7d0 100644 --- a/include/event.h +++ b/include/event.h @@ -20,6 +20,8 @@ #pragma once +#include "base.h" + namespace Events { class ModuleEventListener; diff --git a/include/hashcomp.h b/include/hashcomp.h index 320b57031..483910cb7 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -29,12 +29,6 @@ #pragma once -#include -#include -#include -#include -#include -#include #include "inspircd.h" #include "convto.h" diff --git a/include/inspstring.h b/include/inspstring.h index de0f8be42..17093eb7c 100644 --- a/include/inspstring.h +++ b/include/inspstring.h @@ -27,8 +27,6 @@ #pragma once -// This (config) is needed as inspstring doesn't pull in the central header -#include "config.h" #include /** Sets ret to the formatted string. last is the last parameter before ..., and format is the format in printf-style */ diff --git a/include/modules.h b/include/modules.h index 3521fa76d..b36326b1b 100644 --- a/include/modules.h +++ b/include/modules.h @@ -37,7 +37,6 @@ #include "base.h" #include "ctables.h" #include "inspsocket.h" -#include "timer.h" #include "mode.h" /** Used to specify the behaviour of a module. */ diff --git a/include/modules/regex.h b/include/modules/regex.h index 23e547915..5a0ea4903 100644 --- a/include/modules/regex.h +++ b/include/modules/regex.h @@ -25,7 +25,7 @@ #pragma once -#include "inspircd.h" +#include "event.h" class Regex : public classbase { diff --git a/include/protocol.h b/include/protocol.h index 69f78562a..f69acde0b 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -24,8 +24,6 @@ #pragma once -#include "hashcomp.h" - class User; class ProtocolServer diff --git a/include/socketengine.h b/include/socketengine.h index 99892b80a..26d31c168 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -27,10 +27,7 @@ #pragma once -#include #include -#include -#include "config.h" #include "socket.h" #include "base.h" diff --git a/include/threadengine.h b/include/threadengine.h index 73aafe7aa..0c2d26ce6 100644 --- a/include/threadengine.h +++ b/include/threadengine.h @@ -23,10 +23,6 @@ #pragma once -#include -#include -#include -#include "config.h" #include "base.h" /** Derive from this class to implement your own threaded sections of diff --git a/include/threadengines/threadengine_pthread.h b/include/threadengines/threadengine_pthread.h index d1810c812..cabb6ebd2 100644 --- a/include/threadengines/threadengine_pthread.h +++ b/include/threadengines/threadengine_pthread.h @@ -24,7 +24,8 @@ #pragma once #include -#include "typedefs.h" + +class Thread; /** The ThreadEngine class has the responsibility of initialising * Thread derived classes. It does this by creating operating system diff --git a/include/threadengines/threadengine_win32.h b/include/threadengines/threadengine_win32.h index 2fdf1cb24..77999e541 100644 --- a/include/threadengines/threadengine_win32.h +++ b/include/threadengines/threadengine_win32.h @@ -24,7 +24,6 @@ #pragma once -#include "config.h" #include "base.h" class Thread; -- cgit v1.2.3