From 95dca6c787bd63d705e5870e1a01015bc353fd4c Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 3 Sep 2025 12:42:06 -0400 Subject: [PATCH] UI/Qt: Clean up some manual forward declarations Several are unused, and there's certainly no need for the `using` declaration. --- UI/Qt/BrowserWindow.h | 1 + UI/Qt/FindInPageWidget.h | 1 + UI/Qt/WebContentView.h | 12 ------------ 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/UI/Qt/BrowserWindow.h b/UI/Qt/BrowserWindow.h index 4eda9111609..55b31611a5a 100644 --- a/UI/Qt/BrowserWindow.h +++ b/UI/Qt/BrowserWindow.h @@ -24,6 +24,7 @@ namespace Ladybird { +class Tab; class WebContentView; class BrowserWindow : public QMainWindow { diff --git a/UI/Qt/FindInPageWidget.h b/UI/Qt/FindInPageWidget.h index 9018a196399..cfb60e30b97 100644 --- a/UI/Qt/FindInPageWidget.h +++ b/UI/Qt/FindInPageWidget.h @@ -17,6 +17,7 @@ namespace Ladybird { +class Tab; class WebContentView; class FindInPageWidget final : public QWidget { diff --git a/UI/Qt/WebContentView.h b/UI/Qt/WebContentView.h index 0763ff3d81b..de2c351b15a 100644 --- a/UI/Qt/WebContentView.h +++ b/UI/Qt/WebContentView.h @@ -27,22 +27,10 @@ #include class QKeyEvent; -class QLineEdit; class QSinglePointEvent; -class QTextEdit; - -namespace WebView { - -class WebContentClient; - -} - -using WebView::WebContentClient; namespace Ladybird { -class Tab; - struct WebContentViewInitialState { double maximum_frames_per_second { 60.0 }; };