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.
This commit is contained in:
Ben Wiederhake 2023-01-02 16:57:12 +01:00 committed by Tim Flynn
parent 0bde4e66fa
commit c2a900b853
Notes: sideshowbarker 2024-07-17 02:16:31 +09:00
25 changed files with 1 additions and 25 deletions

View file

@ -11,7 +11,6 @@
#include <AK/Checked.h>
#include <AK/Noncopyable.h>
#include <AK/Platform.h>
#include <AK/StdLibExtras.h>
namespace AK {

View file

@ -9,7 +9,6 @@
#include <AK/AllOf.h>
#include <AK/AnyOf.h>
#include <AK/Array.h>
#include <AK/StdLibExtras.h>
#include <AK/StringView.h>
#ifdef ENABLE_COMPILETIME_FORMAT_CHECK

View file

@ -6,7 +6,7 @@
#pragma once
#include <AK/StdLibExtras.h>
#include <AK/StdLibExtraDetails.h>
// Enables bitwise operators for the specified Enum type.
//

View file

@ -10,7 +10,6 @@
#include <AK/Checked.h>
#include <AK/Noncopyable.h>
#include <AK/Platform.h>
#include <AK/StdLibExtras.h>
namespace AK {

View file

@ -7,7 +7,6 @@
#include <AK/ByteBuffer.h>
#include <AK/Checked.h>
#include <AK/PrintfImplementation.h>
#include <AK/StdLibExtras.h>
#include <AK/String.h>
#include <AK/StringBuilder.h>
#include <AK/StringView.h>

View file

@ -8,7 +8,6 @@
#include <AK/FlyString.h>
#include <AK/HashTable.h>
#include <AK/Memory.h>
#include <AK/StdLibExtras.h>
#include <AK/StringHash.h>
#include <AK/StringImpl.h>
#include <AK/kmalloc.h>

View file

@ -9,7 +9,6 @@
#include <AK/Assertions.h>
#include <AK/Forward.h>
#include <AK/Platform.h>
#include <AK/StdLibExtras.h>
namespace AK {

View file

@ -7,7 +7,6 @@
#pragma once
#include <AK/Assertions.h>
#include <AK/StdLibExtras.h>
#include <AK/Types.h>
#ifdef KERNEL

View file

@ -7,7 +7,6 @@
#pragma once
#include <AK/StdLibExtras.h>
#include <AK/Types.h>
#include <Kernel/VirtualAddress.h>

View file

@ -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>

View file

@ -6,7 +6,6 @@
#pragma once
#include <AK/StdLibExtras.h>
#include <Kernel/Net/IPv4.h>
namespace Kernel {

View file

@ -8,7 +8,6 @@
#include <AK/Checked.h>
#include <AK/Span.h>
#include <AK/StdLibExtras.h>
#include <string.h>
TEST_CASE(constexpr_default_constructor_is_empty)

View file

@ -6,7 +6,6 @@
#include <LibTest/TestCase.h>
#include <AK/StdLibExtras.h>
#include <AK/TypeList.h>
#define STATIC_EXPECT_EQ(lhs, rhs) \

View file

@ -9,7 +9,6 @@
#include <AK/Debug.h>
#include <AK/Format.h>
#include <AK/SinglyLinkedList.h>
#include <AK/StdLibExtras.h>
#include <Kernel/API/Syscall.h>
#include <LibSystem/syscall.h>
#include <bits/pthread_cancel.h>

View file

@ -7,7 +7,6 @@
#include <AK/Assertions.h>
#include <AK/Format.h>
#include <AK/GenericLexer.h>
#include <AK/StdLibExtras.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>

View file

@ -8,7 +8,6 @@
#include <AK/ByteBuffer.h>
#include <AK/Span.h>
#include <AK/StdLibExtras.h>
#include <LibCrypto/Cipher/Cipher.h>
namespace Crypto {

View file

@ -6,7 +6,6 @@
#pragma once
#include <AK/StdLibExtras.h>
#include <AK/StringView.h>
#include <LibGfx/Filters/ColorFilter.h>
#include <math.h>

View file

@ -7,7 +7,6 @@
#pragma once
#include "GenericConvolutionFilter.h"
#include <AK/StdLibExtras.h>
#include <AK/StringView.h>
namespace Gfx {

View file

@ -9,7 +9,6 @@
#include <AK/DeprecatedString.h>
#include <AK/Format.h>
#include <AK/Optional.h>
#include <AK/StdLibExtras.h>
#include <LibGfx/Forward.h>
#include <LibGfx/Point.h>
#include <LibGfx/Rect.h>

View file

@ -5,7 +5,6 @@
*/
#include <AK/DeprecatedString.h>
#include <AK/StdLibExtras.h>
#include <AK/Vector.h>
#include <LibGfx/Line.h>
#include <LibGfx/Rect.h>

View file

@ -7,7 +7,6 @@
#pragma once
#include <AK/Forward.h>
#include <AK/StdLibExtras.h>
namespace PDF {

View file

@ -7,7 +7,6 @@
#pragma once
#include <AK/Optional.h>
#include <AK/StdLibExtras.h>
#include <LibJS/Runtime/VM.h>
#include <LibWeb/WebIDL/ExceptionOr.h>

View file

@ -6,7 +6,6 @@
#pragma once
#include <AK/StdLibExtras.h>
#include <LibCore/ElapsedTimer.h>
#include <LibWeb/DOM/EventTarget.h>

View file

@ -6,7 +6,6 @@
#pragma once
#include <AK/StdLibExtras.h>
#include <LibWeb/HTML/Window.h>
namespace Web::NavigationTiming {

View file

@ -7,7 +7,6 @@
#pragma once
#include <AK/StdLibExtras.h>
#include <LibWeb/Bindings/PlatformObject.h>
namespace Web::RequestIdleCallback {