1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-01 11:39:22 +00:00

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