From c9bb887c5577ebc4016150b08453e3f7cd8b6758 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 1/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). My favorite #include: #include "Applications/Piano/Music.h" // You can't have too much music in life! --- AK/Format.cpp | 1 - AK/JsonPath.cpp | 1 - AK/JsonValue.cpp | 1 - AK/MappedFile.cpp | 1 - Userland/Applications/PixelPaint/BrushTool.cpp | 1 - Userland/Libraries/LibCpp/AST.h | 1 - Userland/Libraries/LibGfx/BMPWriter.cpp | 1 - 7 files changed, 7 deletions(-) diff --git a/AK/Format.cpp b/AK/Format.cpp index fe0e88d6f3..f90d62d3bd 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -35,7 +35,6 @@ # include #else # include -# include #endif namespace AK { diff --git a/AK/JsonPath.cpp b/AK/JsonPath.cpp index 612c69cd2b..7cbc14488f 100644 --- a/AK/JsonPath.cpp +++ b/AK/JsonPath.cpp @@ -24,7 +24,6 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include #include #include diff --git a/AK/JsonValue.cpp b/AK/JsonValue.cpp index e9007bf870..1269f4baff 100644 --- a/AK/JsonValue.cpp +++ b/AK/JsonValue.cpp @@ -29,7 +29,6 @@ #include #include #include -#include namespace AK { diff --git a/AK/MappedFile.cpp b/AK/MappedFile.cpp index 55f0b62d5c..a2b9fb87b8 100644 --- a/AK/MappedFile.cpp +++ b/AK/MappedFile.cpp @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include diff --git a/Userland/Applications/PixelPaint/BrushTool.cpp b/Userland/Applications/PixelPaint/BrushTool.cpp index 200e270ea7..df0eec7acc 100644 --- a/Userland/Applications/PixelPaint/BrushTool.cpp +++ b/Userland/Applications/PixelPaint/BrushTool.cpp @@ -34,7 +34,6 @@ #include #include #include -#include namespace PixelPaint { diff --git a/Userland/Libraries/LibCpp/AST.h b/Userland/Libraries/LibCpp/AST.h index 5f31b0f2e4..38a1f87824 100644 --- a/Userland/Libraries/LibCpp/AST.h +++ b/Userland/Libraries/LibCpp/AST.h @@ -26,7 +26,6 @@ #pragma once -#include "Applications/Piano/Music.h" #include #include #include diff --git a/Userland/Libraries/LibGfx/BMPWriter.cpp b/Userland/Libraries/LibGfx/BMPWriter.cpp index 8e29f73ac9..6911f99164 100644 --- a/Userland/Libraries/LibGfx/BMPWriter.cpp +++ b/Userland/Libraries/LibGfx/BMPWriter.cpp @@ -27,7 +27,6 @@ #include #include #include -#include namespace Gfx {