فهرست منبع

LibWeb: Remove unused header includes

Brian Gianforcaro 4 سال پیش
والد
کامیت
217179a39f
26فایلهای تغییر یافته به همراه0 افزوده شده و 31 حذف شده
  1. 0 1
      Userland/Libraries/LibWeb/Bindings/HTMLCollectionWrapperCustom.cpp
  2. 0 1
      Userland/Libraries/LibWeb/CSS/Length.cpp
  3. 0 1
      Userland/Libraries/LibWeb/CSS/Selector.cpp
  4. 0 1
      Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
  5. 0 1
      Userland/Libraries/LibWeb/CodeGenerators/Generate_CSS_PropertyID_cpp.cpp
  6. 0 1
      Userland/Libraries/LibWeb/CodeGenerators/Generate_CSS_PropertyID_h.cpp
  7. 0 1
      Userland/Libraries/LibWeb/CodeGenerators/Generate_CSS_ValueID_cpp.cpp
  8. 0 1
      Userland/Libraries/LibWeb/CodeGenerators/Generate_CSS_ValueID_h.cpp
  9. 0 1
      Userland/Libraries/LibWeb/DOM/Element.cpp
  10. 0 1
      Userland/Libraries/LibWeb/DOM/Event.cpp
  11. 0 2
      Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.cpp
  12. 0 1
      Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp
  13. 0 3
      Userland/Libraries/LibWeb/InProcessWebView.cpp
  14. 0 1
      Userland/Libraries/LibWeb/Layout/BlockBox.cpp
  15. 0 1
      Userland/Libraries/LibWeb/Layout/Box.cpp
  16. 0 1
      Userland/Libraries/LibWeb/Layout/Node.cpp
  17. 0 1
      Userland/Libraries/LibWeb/Layout/TextNode.cpp
  18. 0 1
      Userland/Libraries/LibWeb/LayoutTreeModel.cpp
  19. 0 2
      Userland/Libraries/LibWeb/Loader/CSSLoader.cpp
  20. 0 1
      Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
  21. 0 1
      Userland/Libraries/LibWeb/Loader/ImageResource.cpp
  22. 0 1
      Userland/Libraries/LibWeb/Painting/StackingContext.cpp
  23. 0 2
      Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp
  24. 0 1
      Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp
  25. 0 1
      Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp
  26. 0 1
      Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp

+ 0 - 1
Userland/Libraries/LibWeb/Bindings/HTMLCollectionWrapperCustom.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/ScopeGuard.h>
 #include <LibWeb/Bindings/HTMLCollectionWrapper.h>
 #include <LibWeb/Bindings/NodeWrapper.h>
 #include <LibWeb/Bindings/NodeWrapperFactory.h>

+ 0 - 1
Userland/Libraries/LibWeb/CSS/Length.cpp

@@ -6,7 +6,6 @@
  */
 
 #include <AK/NonnullOwnPtr.h>
-#include <AK/NonnullOwnPtrVector.h>
 #include <AK/Variant.h>
 #include <LibWeb/CSS/Length.h>
 #include <LibWeb/DOM/Document.h>

+ 0 - 1
Userland/Libraries/LibWeb/CSS/Selector.cpp

@@ -6,7 +6,6 @@
 
 #include "Selector.h"
 #include <AK/StringUtils.h>
-#include <LibWeb/CSS/Selector.h>
 #include <ctype.h>
 
 namespace Web::CSS {

+ 0 - 1
Userland/Libraries/LibWeb/CSS/StyleProperties.cpp

@@ -9,7 +9,6 @@
 #include <LibGfx/FontDatabase.h>
 #include <LibWeb/CSS/StyleProperties.h>
 #include <LibWeb/FontCache.h>
-#include <ctype.h>
 
 namespace Web::CSS {
 

+ 0 - 1
Userland/Libraries/LibWeb/CodeGenerators/Generate_CSS_PropertyID_cpp.cpp

@@ -10,7 +10,6 @@
 #include <AK/StringBuilder.h>
 #include <LibCore/File.h>
 #include <ctype.h>
-#include <stdio.h>
 
 static String title_casify(const String& dashy_name)
 {

+ 0 - 1
Userland/Libraries/LibWeb/CodeGenerators/Generate_CSS_PropertyID_h.cpp

@@ -10,7 +10,6 @@
 #include <AK/StringBuilder.h>
 #include <LibCore/File.h>
 #include <ctype.h>
-#include <stdio.h>
 
 static String title_casify(const String& dashy_name)
 {

+ 0 - 1
Userland/Libraries/LibWeb/CodeGenerators/Generate_CSS_ValueID_cpp.cpp

@@ -10,7 +10,6 @@
 #include <AK/StringBuilder.h>
 #include <LibCore/File.h>
 #include <ctype.h>
-#include <stdio.h>
 
 static String title_casify(const String& dashy_name)
 {

+ 0 - 1
Userland/Libraries/LibWeb/CodeGenerators/Generate_CSS_ValueID_h.cpp

@@ -10,7 +10,6 @@
 #include <AK/StringBuilder.h>
 #include <LibCore/File.h>
 #include <ctype.h>
-#include <stdio.h>
 
 static String title_casify(const String& dashy_name)
 {

+ 0 - 1
Userland/Libraries/LibWeb/DOM/Element.cpp

@@ -9,7 +9,6 @@
 #include <LibWeb/CSS/Parser/DeprecatedCSSParser.h>
 #include <LibWeb/CSS/PropertyID.h>
 #include <LibWeb/CSS/StyleInvalidator.h>
-#include <LibWeb/CSS/StyleResolver.h>
 #include <LibWeb/DOM/DOMException.h>
 #include <LibWeb/DOM/Document.h>
 #include <LibWeb/DOM/Element.h>

+ 0 - 1
Userland/Libraries/LibWeb/DOM/Event.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/Assertions.h>
 #include <AK/TypeCasts.h>
 #include <LibWeb/DOM/Event.h>
 #include <LibWeb/DOM/Node.h>

+ 0 - 2
Userland/Libraries/LibWeb/HTML/HTMLBlinkElement.cpp

@@ -5,10 +5,8 @@
  */
 
 #include <LibCore/Timer.h>
-#include <LibWeb/CSS/StyleProperties.h>
 #include <LibWeb/CSS/StyleValue.h>
 #include <LibWeb/HTML/HTMLBlinkElement.h>
-#include <LibWeb/Layout/Node.h>
 
 namespace Web::HTML {
 

+ 0 - 1
Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <LibGfx/FontDatabase.h>
 #include <LibWeb/DOM/Document.h>
 #include <LibWeb/DOM/Event.h>
 #include <LibWeb/DOM/ShadowRoot.h>

+ 0 - 3
Userland/Libraries/LibWeb/InProcessWebView.cpp

@@ -5,10 +5,8 @@
  */
 
 #include <AK/URL.h>
-#include <LibCore/File.h>
 #include <LibCore/MimeData.h>
 #include <LibGUI/Application.h>
-#include <LibGUI/Clipboard.h>
 #include <LibGUI/InputBox.h>
 #include <LibGUI/MessageBox.h>
 #include <LibGUI/Painter.h>
@@ -19,7 +17,6 @@
 #include <LibWeb/HTML/Parser/HTMLDocumentParser.h>
 #include <LibWeb/InProcessWebView.h>
 #include <LibWeb/Layout/InitialContainingBlockBox.h>
-#include <LibWeb/Layout/Node.h>
 #include <LibWeb/Layout/TextNode.h>
 #include <LibWeb/Loader/ResourceLoader.h>
 #include <LibWeb/Page/BrowsingContext.h>

+ 0 - 1
Userland/Libraries/LibWeb/Layout/BlockBox.cpp

@@ -5,7 +5,6 @@
  */
 
 #include <LibGfx/Painter.h>
-#include <LibWeb/CSS/StyleResolver.h>
 #include <LibWeb/Dump.h>
 #include <LibWeb/Layout/BlockBox.h>
 #include <LibWeb/Layout/InitialContainingBlockBox.h>

+ 0 - 1
Userland/Libraries/LibWeb/Layout/Box.cpp

@@ -6,7 +6,6 @@
 
 #include <LibGfx/DisjointRectSet.h>
 #include <LibGfx/Filters/FastBoxBlurFilter.h>
-#include <LibGfx/Filters/SpatialGaussianBlurFilter.h>
 #include <LibGfx/Painter.h>
 #include <LibWeb/DOM/Document.h>
 #include <LibWeb/HTML/HTMLBodyElement.h>

+ 0 - 1
Userland/Libraries/LibWeb/Layout/Node.cpp

@@ -16,7 +16,6 @@
 #include <LibWeb/Layout/Node.h>
 #include <LibWeb/Layout/TextNode.h>
 #include <LibWeb/Page/BrowsingContext.h>
-#include <typeinfo>
 
 namespace Web::Layout {
 

+ 0 - 1
Userland/Libraries/LibWeb/Layout/TextNode.cpp

@@ -5,7 +5,6 @@
  */
 
 #include <AK/CharacterTypes.h>
-#include <AK/ScopeGuard.h>
 #include <AK/StringBuilder.h>
 #include <LibGfx/Painter.h>
 #include <LibWeb/DOM/Document.h>

+ 0 - 1
Userland/Libraries/LibWeb/LayoutTreeModel.cpp

@@ -8,7 +8,6 @@
 #include <AK/StringBuilder.h>
 #include <LibWeb/DOM/Document.h>
 #include <LibWeb/DOM/Element.h>
-#include <LibWeb/DOM/Text.h>
 #include <LibWeb/Layout/InitialContainingBlockBox.h>
 #include <LibWeb/Layout/TextNode.h>
 #include <ctype.h>

+ 0 - 2
Userland/Libraries/LibWeb/Loader/CSSLoader.cpp

@@ -6,9 +6,7 @@
 
 #include <AK/Debug.h>
 #include <AK/URL.h>
-#include <LibWeb/CSS/CSSImportRule.h>
 #include <LibWeb/CSS/Parser/DeprecatedCSSParser.h>
-#include <LibWeb/CSS/StyleSheet.h>
 #include <LibWeb/DOM/Document.h>
 #include <LibWeb/DOM/Element.h>
 #include <LibWeb/Loader/CSSLoader.h>

+ 0 - 1
Userland/Libraries/LibWeb/Loader/FrameLoader.cpp

@@ -17,7 +17,6 @@
 #include <LibWeb/HTML/Parser/HTMLDocumentParser.h>
 #include <LibWeb/Loader/FrameLoader.h>
 #include <LibWeb/Loader/ResourceLoader.h>
-#include <LibWeb/Namespace.h>
 #include <LibWeb/Page/BrowsingContext.h>
 #include <LibWeb/Page/Page.h>
 

+ 0 - 1
Userland/Libraries/LibWeb/Loader/ImageResource.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/Function.h>
 #include <LibGfx/Bitmap.h>
 #include <LibImageDecoderClient/Client.h>
 #include <LibWeb/Loader/ImageResource.h>

+ 0 - 1
Userland/Libraries/LibWeb/Painting/StackingContext.cpp

@@ -7,7 +7,6 @@
 #include <AK/QuickSort.h>
 #include <AK/StringBuilder.h>
 #include <LibGfx/Painter.h>
-#include <LibWeb/DOM/Node.h>
 #include <LibWeb/Layout/Box.h>
 #include <LibWeb/Layout/InitialContainingBlockBox.h>
 #include <LibWeb/Painting/StackingContext.h>

+ 0 - 2
Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp

@@ -9,9 +9,7 @@
 #include <LibWeb/DOM/Document.h>
 #include <LibWeb/DOM/Event.h>
 #include <LibWeb/Layout/SVGSVGBox.h>
-#include <LibWeb/SVG/SVGPathElement.h>
 #include <LibWeb/SVG/SVGSVGElement.h>
-#include <ctype.h>
 
 namespace Web::SVG {
 

+ 0 - 1
Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <LibJS/Heap/Heap.h>
 #include <LibJS/Runtime/GlobalObject.h>
 #include <LibWeb/Bindings/WindowObject.h>
 #include <LibWeb/WebAssembly/WebAssemblyInstanceConstructor.h>

+ 0 - 1
Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <LibJS/Heap/Heap.h>
 #include <LibJS/Runtime/GlobalObject.h>
 #include <LibWeb/Bindings/WindowObject.h>
 #include <LibWeb/WebAssembly/WebAssemblyMemoryConstructor.h>

+ 0 - 1
Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <LibJS/Heap/Heap.h>
 #include <LibJS/Runtime/GlobalObject.h>
 #include <LibJS/Runtime/TypedArray.h>
 #include <LibWeb/Bindings/WindowObject.h>