diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2023-01-02 16:57:12 +0100 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-02 20:27:20 -0500 |
commit | c2a900b8535df96c931b1c2b93765f5bca468fd7 (patch) | |
tree | c7f38ff230e4fd6d92d7e205f8bf37557b16e611 /Kernel | |
parent | 0bde4e66fade79a437eb1c718458cd33a83759c0 (diff) | |
download | serenity-c2a900b8535df96c931b1c2b93765f5bca468fd7.zip |
Everywhere: Remove unused includes of AK/StdLibExtras.h
These instances were detected by searching for files that include
AK/StdLibExtras.h, but don't match the regex:
\\b(abs|AK_REPLACED_STD_NAMESPACE|array_size|ceil_div|clamp|exchange|for
ward|is_constant_evaluated|is_power_of_two|max|min|mix|move|_RawPtr|RawP
tr|round_up_to_power_of_two|swap|to_underlying)\\b
(Without the linebreaks.)
This regex is pessimistic, so there might be more files that don't
actually use any "extra stdlib" functions.
In theory, one might use LibCPP to detect things like this
automatically, but let's do this one step after another.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Arch/x86_64/DescriptorTable.h | 1 | ||||
-rw-r--r-- | Kernel/Devices/MemoryDevice.cpp | 1 | ||||
-rw-r--r-- | Kernel/Net/TCP.h | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/Kernel/Arch/x86_64/DescriptorTable.h b/Kernel/Arch/x86_64/DescriptorTable.h index 8eefd85cfa..623325c12a 100644 --- a/Kernel/Arch/x86_64/DescriptorTable.h +++ b/Kernel/Arch/x86_64/DescriptorTable.h @@ -7,7 +7,6 @@ #pragma once -#include <AK/StdLibExtras.h> #include <AK/Types.h> #include <Kernel/VirtualAddress.h> diff --git a/Kernel/Devices/MemoryDevice.cpp b/Kernel/Devices/MemoryDevice.cpp index 73cb912be8..454bd28615 100644 --- a/Kernel/Devices/MemoryDevice.cpp +++ b/Kernel/Devices/MemoryDevice.cpp @@ -5,7 +5,6 @@ */ #include <AK/Memory.h> -#include <AK/StdLibExtras.h> #include <Kernel/Devices/DeviceManagement.h> #include <Kernel/Devices/MemoryDevice.h> #include <Kernel/Memory/AnonymousVMObject.h> diff --git a/Kernel/Net/TCP.h b/Kernel/Net/TCP.h index a517089b8e..c843b5dda0 100644 --- a/Kernel/Net/TCP.h +++ b/Kernel/Net/TCP.h @@ -6,7 +6,6 @@ #pragma once -#include <AK/StdLibExtras.h> #include <Kernel/Net/IPv4.h> namespace Kernel { |