From a8391d5a6093b6136db17fedc0e5a77e0bbac1ae Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Mon, 2 Jan 2023 18:15:28 +0100 Subject: [PATCH] Everywhere: Remove unused includes of AK/Array.h These instances were detected by searching for files that include Array.h, but don't match the regex: \\b(Array(?!\.h>)|iota_array|integer_sequence_generate_array)\\b These are the three symbols defined by Array.h. In theory, one might use LibCPP to detect things like this automatically, but let's do this one step after another. --- AK/Hex.cpp | 1 - Kernel/Arch/aarch64/Processor.h | 1 - Userland/Applications/Piano/TrackManager.h | 1 - Userland/Libraries/LibGPU/Device.h | 1 - Userland/Libraries/LibGPU/RasterizerOptions.h | 1 - Userland/Libraries/LibGfx/PNGLoader.cpp | 1 - Userland/Libraries/LibJS/Runtime/DatePrototype.cpp | 1 - Userland/Libraries/LibWeb/WebDriver/ElementLocationStrategies.h | 1 - Userland/Utilities/stty.cpp | 1 - 9 files changed, 9 deletions(-) diff --git a/AK/Hex.cpp b/AK/Hex.cpp index 7b9dfccbb7..5f7252c184 100644 --- a/AK/Hex.cpp +++ b/AK/Hex.cpp @@ -5,7 +5,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include #include #include #include diff --git a/Kernel/Arch/aarch64/Processor.h b/Kernel/Arch/aarch64/Processor.h index 8374c61ac0..cc2f2f60e6 100644 --- a/Kernel/Arch/aarch64/Processor.h +++ b/Kernel/Arch/aarch64/Processor.h @@ -7,7 +7,6 @@ #pragma once -#include #include #include #include diff --git a/Userland/Applications/Piano/TrackManager.h b/Userland/Applications/Piano/TrackManager.h index 73677c9fe3..169b9f6a94 100644 --- a/Userland/Applications/Piano/TrackManager.h +++ b/Userland/Applications/Piano/TrackManager.h @@ -10,7 +10,6 @@ #pragma once #include "Music.h" -#include #include #include #include diff --git a/Userland/Libraries/LibGPU/Device.h b/Userland/Libraries/LibGPU/Device.h index 59d5ea993a..b957505c9d 100644 --- a/Userland/Libraries/LibGPU/Device.h +++ b/Userland/Libraries/LibGPU/Device.h @@ -7,7 +7,6 @@ #pragma once -#include #include #include #include diff --git a/Userland/Libraries/LibGPU/RasterizerOptions.h b/Userland/Libraries/LibGPU/RasterizerOptions.h index 82130292c4..21bab272a8 100644 --- a/Userland/Libraries/LibGPU/RasterizerOptions.h +++ b/Userland/Libraries/LibGPU/RasterizerOptions.h @@ -7,7 +7,6 @@ #pragma once -#include #include #include #include diff --git a/Userland/Libraries/LibGfx/PNGLoader.cpp b/Userland/Libraries/LibGfx/PNGLoader.cpp index 82ed4b0821..42a00bcbea 100644 --- a/Userland/Libraries/LibGfx/PNGLoader.cpp +++ b/Userland/Libraries/LibGfx/PNGLoader.cpp @@ -5,7 +5,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include #include #include #include diff --git a/Userland/Libraries/LibJS/Runtime/DatePrototype.cpp b/Userland/Libraries/LibJS/Runtime/DatePrototype.cpp index f872d2b567..faadc9a06f 100644 --- a/Userland/Libraries/LibJS/Runtime/DatePrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/DatePrototype.cpp @@ -7,7 +7,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include #include #include #include diff --git a/Userland/Libraries/LibWeb/WebDriver/ElementLocationStrategies.h b/Userland/Libraries/LibWeb/WebDriver/ElementLocationStrategies.h index 8d82286a21..eac1416f87 100644 --- a/Userland/Libraries/LibWeb/WebDriver/ElementLocationStrategies.h +++ b/Userland/Libraries/LibWeb/WebDriver/ElementLocationStrategies.h @@ -7,7 +7,6 @@ #pragma once -#include #include #include #include diff --git a/Userland/Utilities/stty.cpp b/Userland/Utilities/stty.cpp index 44eac1434d..a943855319 100644 --- a/Userland/Utilities/stty.cpp +++ b/Userland/Utilities/stty.cpp @@ -7,7 +7,6 @@ #define __USE_MISC #define TTYDEFCHARS -#include #include #include #include