summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-03-05 08:39:42 +0000
committerSadie Powell <sadie@witchery.services>2021-03-05 09:17:13 +0000
commit2ba32afa9a9aca7c82966b66bda16c3c3dbfbba5 (patch)
tree74d565304ac68244d655a257ce27fe8a920fe510 /include
parent9d26c40d1bd8ab4691619ebc0447d29281463cb1 (diff)
Fix a bunch of really obvious unnecessary includes.
Diffstat (limited to 'include')
-rw-r--r--include/base.h4
-rw-r--r--include/configreader.h7
-rw-r--r--include/event.h2
-rw-r--r--include/hashcomp.h6
-rw-r--r--include/inspstring.h2
-rw-r--r--include/modules.h1
-rw-r--r--include/modules/regex.h2
-rw-r--r--include/protocol.h2
-rw-r--r--include/socketengine.h3
-rw-r--r--include/threadengine.h4
-rw-r--r--include/threadengines/threadengine_pthread.h3
-rw-r--r--include/threadengines/threadengine_win32.h1
12 files changed, 6 insertions, 31 deletions
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 <map>
-#include <deque>
+#include "compat.h"
#include <string>
-#include <list>
/** 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 <sstream>
-#include <string>
-#include <vector>
-#include <map>
#include "inspircd.h"
-#include "modules.h"
-#include "socketengine.h"
-#include "socket.h"
#include "token_list.h"
/** Structure representing a single \<tag> 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 <cstring>
-#include <string>
-#include <vector>
-#include <deque>
-#include <map>
-#include <set>
#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 <cstring>
/** 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 <vector>
#include <string>
-#include <map>
-#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 <vector>
-#include <string>
-#include <map>
-#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 <pthread.h>
-#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;