1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

Everywhere: Include HashMap only where it's actually used

This commit is contained in:
Pavel Shliak 2024-12-08 21:26:06 +04:00 committed by Jelle Raaijmakers
parent 97d99aa8d6
commit 6f81b80114
Notes: github-actions[bot] 2024-12-09 11:32:02 +00:00
26 changed files with 7 additions and 21 deletions

View file

@ -6,7 +6,7 @@
#include <AK/DeprecatedFlyString.h> #include <AK/DeprecatedFlyString.h>
#include <AK/FlyString.h> #include <AK/FlyString.h>
#include <AK/HashMap.h> #include <AK/HashTable.h>
#include <AK/Singleton.h> #include <AK/Singleton.h>
#include <AK/String.h> #include <AK/String.h>
#include <AK/StringData.h> #include <AK/StringData.h>

View file

@ -10,11 +10,11 @@
#include <AK/ByteString.h> #include <AK/ByteString.h>
#include <AK/Forward.h> #include <AK/Forward.h>
#include <AK/Function.h> #include <AK/Function.h>
#include <AK/HashMap.h>
#include <AK/Noncopyable.h> #include <AK/Noncopyable.h>
#include <AK/OwnPtr.h> #include <AK/OwnPtr.h>
#include <AK/StringView.h> #include <AK/StringView.h>
#include <AK/TypeCasts.h> #include <AK/TypeCasts.h>
#include <AK/Vector.h>
#include <AK/Weakable.h> #include <AK/Weakable.h>
#include <LibCore/Forward.h> #include <LibCore/Forward.h>

View file

@ -10,6 +10,7 @@
#include <AK/ByteString.h> #include <AK/ByteString.h>
#include <AK/EnumBits.h> #include <AK/EnumBits.h>
#include <AK/Function.h> #include <AK/Function.h>
#include <AK/HashMap.h>
#include <AK/Noncopyable.h> #include <AK/Noncopyable.h>
#include <AK/NonnullRefPtr.h> #include <AK/NonnullRefPtr.h>
#include <AK/RefCounted.h> #include <AK/RefCounted.h>

View file

@ -6,7 +6,6 @@
#pragma once #pragma once
#include <AK/HashMap.h>
#include <AK/IntrusiveList.h> #include <AK/IntrusiveList.h>
#include <AK/Vector.h> #include <AK/Vector.h>
#include <LibGC/Cell.h> #include <LibGC/Cell.h>

View file

@ -7,7 +7,6 @@
*/ */
#include <AK/Demangle.h> #include <AK/Demangle.h>
#include <AK/HashMap.h>
#include <AK/HashTable.h> #include <AK/HashTable.h>
#include <AK/QuickSort.h> #include <AK/QuickSort.h>
#include <AK/ScopeGuard.h> #include <AK/ScopeGuard.h>

View file

@ -10,7 +10,6 @@
#include <AK/ByteString.h> #include <AK/ByteString.h>
#include <AK/DeprecatedFlyString.h> #include <AK/DeprecatedFlyString.h>
#include <AK/HashMap.h>
#include <AK/OwnPtr.h> #include <AK/OwnPtr.h>
#include <AK/RefPtr.h> #include <AK/RefPtr.h>
#include <AK/Variant.h> #include <AK/Variant.h>

View file

@ -6,7 +6,6 @@
#pragma once #pragma once
#include <AK/HashMap.h>
#include <LibJS/Runtime/Map.h> #include <LibJS/Runtime/Map.h>
#include <LibJS/Runtime/Object.h> #include <LibJS/Runtime/Object.h>

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause * SPDX-License-Identifier: BSD-2-Clause
*/ */
#include <AK/HashMap.h>
#include <AK/TypeCasts.h> #include <AK/TypeCasts.h>
#include <LibJS/Runtime/AbstractOperations.h> #include <LibJS/Runtime/AbstractOperations.h>
#include <LibJS/Runtime/KeyedCollections.h> #include <LibJS/Runtime/KeyedCollections.h>

View file

@ -8,7 +8,6 @@
#pragma once #pragma once
#include <AK/Badge.h> #include <AK/Badge.h>
#include <AK/HashMap.h>
#include <AK/StringView.h> #include <AK/StringView.h>
#include <LibGC/CellAllocator.h> #include <LibGC/CellAllocator.h>
#include <LibGC/MarkedVector.h> #include <LibGC/MarkedVector.h>

View file

@ -13,7 +13,6 @@
#include <AK/ByteString.h> #include <AK/ByteString.h>
#include <AK/COWVector.h> #include <AK/COWVector.h>
#include <AK/DeprecatedFlyString.h> #include <AK/DeprecatedFlyString.h>
#include <AK/HashMap.h>
#include <AK/MemMem.h> #include <AK/MemMem.h>
#include <AK/RedBlackTree.h> #include <AK/RedBlackTree.h>
#include <AK/StringBuilder.h> #include <AK/StringBuilder.h>

View file

@ -12,6 +12,7 @@
#include "RegexOptions.h" #include "RegexOptions.h"
#include <AK/Forward.h> #include <AK/Forward.h>
#include <AK/HashMap.h>
#include <AK/Types.h> #include <AK/Types.h>
#include <AK/Vector.h> #include <AK/Vector.h>
#include <LibUnicode/Forward.h> #include <LibUnicode/Forward.h>

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause * SPDX-License-Identifier: BSD-2-Clause
*/ */
#include <AK/HashMap.h>
#include <LibUnicode/CurrencyCode.h> #include <LibUnicode/CurrencyCode.h>
namespace Unicode { namespace Unicode {

View file

@ -6,7 +6,6 @@
#pragma once #pragma once
#include <AK/HashMap.h>
#include <AK/Optional.h> #include <AK/Optional.h>
#include <AK/Span.h> #include <AK/Span.h>
#include <AK/StringView.h> #include <AK/StringView.h>

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause * SPDX-License-Identifier: BSD-2-Clause
*/ */
#include <AK/HashMap.h>
#include <LibJS/Forward.h> #include <LibJS/Forward.h>
#include <LibJS/Runtime/NativeFunction.h> #include <LibJS/Runtime/NativeFunction.h>
#include <LibJS/Runtime/Object.h> #include <LibJS/Runtime/Object.h>

View file

@ -7,7 +7,6 @@
#pragma once #pragma once
#include <AK/HashMap.h>
#include <AK/String.h> #include <AK/String.h>
#include <AK/Vector.h> #include <AK/Vector.h>
#include <LibJS/Forward.h> #include <LibJS/Forward.h>

View file

@ -6,7 +6,6 @@
#pragma once #pragma once
#include <AK/HashMap.h>
#include <AK/NonnullRefPtr.h> #include <AK/NonnullRefPtr.h>
#include <AK/WeakPtr.h> #include <AK/WeakPtr.h>
#include <LibJS/Heap/Cell.h> #include <LibJS/Heap/Cell.h>

View file

@ -6,7 +6,6 @@
#pragma once #pragma once
#include <AK/HashMap.h>
#include <LibGC/Ptr.h> #include <LibGC/Ptr.h>
#include <LibWeb/DOM/EventTarget.h> #include <LibWeb/DOM/EventTarget.h>
#include <LibWeb/IndexedDB/IDBDatabase.h> #include <LibWeb/IndexedDB/IDBDatabase.h>

View file

@ -7,7 +7,6 @@
#pragma once #pragma once
#include <AK/ByteBuffer.h> #include <AK/ByteBuffer.h>
#include <AK/HashMap.h>
#include <AK/HashTable.h> #include <AK/HashTable.h>
#include <AK/Noncopyable.h> #include <AK/Noncopyable.h>
#include <AK/RefCounted.h> #include <AK/RefCounted.h>

View file

@ -6,7 +6,6 @@
#pragma once #pragma once
#include <AK/HashMap.h>
#include <LibIPC/ConnectionToServer.h> #include <LibIPC/ConnectionToServer.h>
#include <LibWeb/Worker/WebWorkerClientEndpoint.h> #include <LibWeb/Worker/WebWorkerClientEndpoint.h>
#include <LibWeb/Worker/WebWorkerServerEndpoint.h> #include <LibWeb/Worker/WebWorkerServerEndpoint.h>

View file

@ -5,6 +5,7 @@
*/ */
#include <AK/Assertions.h> #include <AK/Assertions.h>
#include <AK/HashMap.h>
#include <AK/IDAllocator.h> #include <AK/IDAllocator.h>
#include <AK/Singleton.h> #include <AK/Singleton.h>
#include <AK/TemporaryChange.h> #include <AK/TemporaryChange.h>

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause * SPDX-License-Identifier: BSD-2-Clause
*/ */
#include <AK/HashMap.h>
#include <AK/IDAllocator.h> #include <AK/IDAllocator.h>
#include <AK/Singleton.h> #include <AK/Singleton.h>
#include <AK/TemporaryChange.h> #include <AK/TemporaryChange.h>

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause * SPDX-License-Identifier: BSD-2-Clause
*/ */
#include <AK/HashMap.h>
#include <AK/NonnullOwnPtr.h> #include <AK/NonnullOwnPtr.h>
#include <LibXML/DOM/Node.h> #include <LibXML/DOM/Node.h>

View file

@ -6,7 +6,6 @@
#pragma once #pragma once
#include <AK/HashMap.h>
#include <AK/NonnullOwnPtr.h> #include <AK/NonnullOwnPtr.h>
#include <AK/Optional.h> #include <AK/Optional.h>
#include <AK/RefCounted.h> #include <AK/RefCounted.h>

View file

@ -9,7 +9,6 @@
#pragma once #pragma once
#include <AK/ByteString.h> #include <AK/ByteString.h>
#include <AK/HashMap.h>
#include <AK/String.h> #include <AK/String.h>
#include <LibGC/MarkedVector.h> #include <LibGC/MarkedVector.h>
#include <LibGfx/Rect.h> #include <LibGfx/Rect.h>

View file

@ -7,7 +7,6 @@
#include <LibTest/TestCase.h> #include <LibTest/TestCase.h>
#include <AK/ByteString.h> #include <AK/ByteString.h>
#include <AK/HashMap.h>
#include <AK/JsonObject.h> #include <AK/JsonObject.h>
#include <AK/JsonValue.h> #include <AK/JsonValue.h>
#include <AK/StringBuilder.h> #include <AK/StringBuilder.h>

View file

@ -9,7 +9,6 @@
#include <AK/ByteString.h> #include <AK/ByteString.h>
#include <AK/Function.h> #include <AK/Function.h>
#include <AK/HashMap.h>
#include <AK/OwnPtr.h> #include <AK/OwnPtr.h>
#include <LibGfx/Forward.h> #include <LibGfx/Forward.h>
#include <LibGfx/Rect.h> #include <LibGfx/Rect.h>