Skip to content

Truly independent web browser

WebContent: Remove the unused user style message

Andreas Kling2bc10082612a
diff --git a/Services/WebContent/ConnectionFromClient.cpp b/Services/WebContent/ConnectionFromClient.cpp
index 341971f15dd..1ba35fb2e3b 100644
--- a/Services/WebContent/ConnectionFromClient.cpp
+++ b/Services/WebContent/ConnectionFromClient.cpp
@@ -3449,12 +3449,6 @@ void ConnectionFromClient::set_page_mute_state(Web::PageId page_id, Web::HTML::M
page->page().set_page_mute_state(mute_state);
}
-void ConnectionFromClient::set_user_style(Web::PageId page_id, String source)
-{
- if (auto page = this->page(page_id); page.has_value())
- page->page().set_user_style(Utf16String::from_utf8(source));
-}
-
void ConnectionFromClient::system_time_zone_changed()
{
JS::clear_system_time_zone_cache();
diff --git a/Services/WebContent/ConnectionFromClient.h b/Services/WebContent/ConnectionFromClient.h
index 4c58f3b175d..bb2c0d5e3f8 100644
--- a/Services/WebContent/ConnectionFromClient.h
+++ b/Services/WebContent/ConnectionFromClient.h
@@ -290,8 +290,6 @@ private:
virtual void set_page_mute_state(Web::PageId page_id, Web::HTML::MuteState mute_state) override;
- virtual void set_user_style(Web::PageId page_id, String) override;
-
virtual void take_document_screenshot(Web::PageId page_id) override;
virtual void take_dom_node_screenshot(Web::PageId page_id, Web::UniqueNodeID node_id) override;
diff --git a/Services/WebContent/PageClient.cpp b/Services/WebContent/PageClient.cpp
index 5d1ea7fd095..d1a1f3a95b5 100644
--- a/Services/WebContent/PageClient.cpp
+++ b/Services/WebContent/PageClient.cpp
@@ -1360,11 +1360,6 @@ void PageClient::toggle_media_controls_state()
page().toggle_media_controls_state();
}
-void PageClient::set_user_style(String source)
-{
- page().set_user_style(Utf16String::from_utf8(source));
-}
-
void PageClient::page_did_request_accept_dialog()
{
client().async_did_request_accept_dialog(m_id);
diff --git a/Services/WebContent/PageClient.h b/Services/WebContent/PageClient.h
index 12881b66e9e..4d01ef833fe 100644
--- a/Services/WebContent/PageClient.h
+++ b/Services/WebContent/PageClient.h
@@ -113,7 +113,6 @@ public:
void color_picker_update(Optional<Color> picked_color, Web::HTML::ColorPickerUpdateState state);
void select_dropdown_closed(Optional<u32> const& selected_item_id);
- void set_user_style(String source);
void set_has_devtools_client(bool);
bool has_devtools_client() const { return m_has_devtools_client; }
virtual bool has_active_devtools_client() const override { return has_devtools_client(); }
diff --git a/Services/WebContent/WebContentServer.ipc b/Services/WebContent/WebContentServer.ipc
index 2d4c7f08dcb..cf34338a201 100644
--- a/Services/WebContent/WebContentServer.ipc
+++ b/Services/WebContent/WebContentServer.ipc
@@ -298,8 +298,6 @@ endpoint WebContentServer routed by Web::PageId page_id
set_page_mute_state(Web::PageId page_id, Web::HTML::MuteState mute_state) =|
- set_user_style(Web::PageId page_id, String source) =|
-
system_time_zone_changed() =|
set_system_font_family(String family) =|