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 691b190e18..77ee165b2e 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 3b3e0c4845..8360fff976 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 27d5bfbbfc..de7f805d4b 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 02bd52b788..6e36a58988 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 3a8db6976a..63ce729c13 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 3b7206afce..abb1599f41 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 b8d7f9f420..df046a2c1f 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 049d88a121..891cc233ba 100644 --- a/Userland/Libraries/LibVideo/VideoFrame.h +++ b/Userland/Libraries/LibVideo/VideoFrame.h @@ -7,7 +7,6 @@ #pragma once #include -#include #include #include #include