From f07847e099b203e42b6cc613acf3eecd4af55c9d Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Mon, 2 Jan 2023 16:57:12 +0100 Subject: [PATCH] Everywhere: Remove unused includes of AK/Concepts.h These instances were detected by searching for files that include AK/Concepts.h, but don't match the regex: \\b(AnyString|Arithmetic|ArrayLike|DerivedFrom|Enum|FallibleFunction|Flo atingPoint|Fundamental|HashCompatible|Indexable|Integral|IterableContain er|IteratorFunction|IteratorPairWith|OneOf|OneOfIgnoringCV|SameAs|Signed |SpecializationOf|Unsigned|VoidFunction)\\b (Without the linebreaks.) This regex is pessimistic, so there might be more files that don't actually use any concepts. In theory, one might use LibCPP to detect things like this automatically, but let's do this one step after another. --- AK/FloatingPoint.h | 1 - Kernel/Arch/x86_64/CPU.h | 1 - Userland/Libraries/LibCrypto/Forward.h | 2 +- Userland/Libraries/LibELF/Relocation.h | 1 - Userland/Libraries/LibJS/Runtime/Map.h | 1 - Userland/Libraries/LibJS/Runtime/Value.h | 1 - Userland/Libraries/LibVideo/Containers/Matroska/Reader.h | 1 - Userland/Libraries/LibVideo/VideoFrame.h | 1 - 8 files changed, 1 insertion(+), 8 deletions(-) diff --git a/AK/FloatingPoint.h b/AK/FloatingPoint.h index 691b190e186..77ee165b2e7 100644 --- a/AK/FloatingPoint.h +++ b/AK/FloatingPoint.h @@ -7,7 +7,6 @@ #pragma once #include -#include #include namespace AK { diff --git a/Kernel/Arch/x86_64/CPU.h b/Kernel/Arch/x86_64/CPU.h index 3b3e0c48455..8360fff976a 100644 --- a/Kernel/Arch/x86_64/CPU.h +++ b/Kernel/Arch/x86_64/CPU.h @@ -7,7 +7,6 @@ #pragma once #include -#include #include #include diff --git a/Userland/Libraries/LibCrypto/Forward.h b/Userland/Libraries/LibCrypto/Forward.h index 27d5bfbbfc5..de7f805d4b5 100644 --- a/Userland/Libraries/LibCrypto/Forward.h +++ b/Userland/Libraries/LibCrypto/Forward.h @@ -6,7 +6,7 @@ #pragma once -#include +#include namespace Crypto { diff --git a/Userland/Libraries/LibELF/Relocation.h b/Userland/Libraries/LibELF/Relocation.h index 02bd52b788c..6e36a589881 100644 --- a/Userland/Libraries/LibELF/Relocation.h +++ b/Userland/Libraries/LibELF/Relocation.h @@ -6,7 +6,6 @@ #pragma once -#include #include namespace ELF { diff --git a/Userland/Libraries/LibJS/Runtime/Map.h b/Userland/Libraries/LibJS/Runtime/Map.h index 3a8db6976a1..63ce729c135 100644 --- a/Userland/Libraries/LibJS/Runtime/Map.h +++ b/Userland/Libraries/LibJS/Runtime/Map.h @@ -6,7 +6,6 @@ #pragma once -#include #include #include #include diff --git a/Userland/Libraries/LibJS/Runtime/Value.h b/Userland/Libraries/LibJS/Runtime/Value.h index 3b7206afce9..abb1599f41b 100644 --- a/Userland/Libraries/LibJS/Runtime/Value.h +++ b/Userland/Libraries/LibJS/Runtime/Value.h @@ -10,7 +10,6 @@ #include #include -#include #include #include #include diff --git a/Userland/Libraries/LibVideo/Containers/Matroska/Reader.h b/Userland/Libraries/LibVideo/Containers/Matroska/Reader.h index b8d7f9f4203..df046a2c1fa 100644 --- a/Userland/Libraries/LibVideo/Containers/Matroska/Reader.h +++ b/Userland/Libraries/LibVideo/Containers/Matroska/Reader.h @@ -7,7 +7,6 @@ #pragma once -#include #include #include #include diff --git a/Userland/Libraries/LibVideo/VideoFrame.h b/Userland/Libraries/LibVideo/VideoFrame.h index 049d88a1218..891cc233bac 100644 --- a/Userland/Libraries/LibVideo/VideoFrame.h +++ b/Userland/Libraries/LibVideo/VideoFrame.h @@ -7,7 +7,6 @@ #pragma once #include -#include #include #include #include