From fa2b5ca6f60a5744c7b7f5146e503d19a3429764 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Mon, 1 Feb 2021 22:48:35 +0100 Subject: [PATCH] Everywhere: Remove unnecessary headers 2/4 Arbitrarily split up to make git bisect easier. These unnecessary #include's were found by combining an automated tool (which determined likely candidates) and some brain power (which decided whether the #include is also semantically superfluous). --- AK/IDAllocator.h | 1 - AK/JsonObject.h | 1 - AK/LogStream.cpp | 4 ---- AK/String.cpp | 4 ---- 4 files changed, 10 deletions(-) diff --git a/AK/IDAllocator.h b/AK/IDAllocator.h index 10b54aae1c..3064d68e63 100644 --- a/AK/IDAllocator.h +++ b/AK/IDAllocator.h @@ -27,7 +27,6 @@ #pragma once #include -#include namespace AK { diff --git a/AK/JsonObject.h b/AK/JsonObject.h index 4e89e85d52..e3a1c6983c 100644 --- a/AK/JsonObject.h +++ b/AK/JsonObject.h @@ -31,7 +31,6 @@ #include #include #include -#include namespace AK { diff --git a/AK/LogStream.cpp b/AK/LogStream.cpp index feaeb7c13a..08da5f705b 100644 --- a/AK/LogStream.cpp +++ b/AK/LogStream.cpp @@ -35,10 +35,6 @@ # include #endif -#if !defined(KERNEL) -# include -#endif - namespace AK { const LogStream& operator<<(const LogStream& stream, const String& value) diff --git a/AK/String.cpp b/AK/String.cpp index 33f65824ce..790efc2a21 100644 --- a/AK/String.cpp +++ b/AK/String.cpp @@ -34,10 +34,6 @@ #include #include -#ifndef KERNEL -# include -#endif - namespace AK { String::String(const StringView& view)