summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-05-17 10:00:57 -0400
committerAndreas Kling <kling@serenityos.org>2023-05-17 19:47:05 +0200
commit31d7565cf327767c4a986a5c2500798fc6104010 (patch)
treefda1d075137f161286942766c65828eb411490f9
parentd8b14da380f0d35f5197b741c81f84c64cfb6204 (diff)
downloadserenity-31d7565cf327767c4a986a5c2500798fc6104010.zip
Ladybird: Remove unused JS console methods
Note that the real implementations of these functions are: notify_server_did_output_js_console_message notify_server_did_get_js_console_messages Which have the same method bodies as these unused variants.
-rw-r--r--Ladybird/WebContentView.cpp12
-rw-r--r--Ladybird/WebContentView.h3
2 files changed, 0 insertions, 15 deletions
diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp
index c51b7fde98..37c0e294a9 100644
--- a/Ladybird/WebContentView.cpp
+++ b/Ladybird/WebContentView.cpp
@@ -473,18 +473,6 @@ void WebContentView::update_viewport_rect()
request_repaint();
}
-void WebContentView::did_output_js_console_message(i32 message_index)
-{
- if (m_console_widget)
- m_console_widget->notify_about_new_console_message(message_index);
-}
-
-void WebContentView::did_get_js_console_messages(i32 start_index, Vector<DeprecatedString> message_types, Vector<DeprecatedString> messages)
-{
- if (m_console_widget)
- m_console_widget->handle_console_messages(start_index, message_types, messages);
-}
-
void WebContentView::ensure_js_console_widget()
{
if (!m_console_widget) {
diff --git a/Ladybird/WebContentView.h b/Ladybird/WebContentView.h
index 095c87ede1..3d0865f95f 100644
--- a/Ladybird/WebContentView.h
+++ b/Ladybird/WebContentView.h
@@ -91,9 +91,6 @@ public:
virtual void focusOutEvent(QFocusEvent*) override;
virtual bool event(QEvent*) override;
- void did_output_js_console_message(i32 message_index);
- void did_get_js_console_messages(i32 start_index, Vector<DeprecatedString> message_types, Vector<DeprecatedString> messages);
-
void show_js_console();
enum class InspectorTarget {