Skip to content

Truly independent web browser

LibWeb: Remove unused internal entry points

Andreas Kling85059a61dfe1
diff --git a/Libraries/LibWeb/Compositor/CompositorConnection.cpp b/Libraries/LibWeb/Compositor/CompositorConnection.cpp
index bfd94dcb812..5b9eb5be826 100644
--- a/Libraries/LibWeb/Compositor/CompositorConnection.cpp
+++ b/Libraries/LibWeb/Compositor/CompositorConnection.cpp
@@ -265,12 +265,6 @@ struct FrameSinkFFI {
}
};
-void CompositorConnection::submit_frame_for_testing(CompositorFrame&& frame)
-{
- if (!m_frame_sink->submit(move(frame)))
- did_lose_compositor();
-}
-
void CompositorConnection::hand_frame_sink_to_paint_thread()
{
NonnullRefPtr<CompositorFrameSink> sink = m_frame_sink;
diff --git a/Libraries/LibWeb/Compositor/CompositorConnection.h b/Libraries/LibWeb/Compositor/CompositorConnection.h
index 218eea817a3..ef33421c93b 100644
--- a/Libraries/LibWeb/Compositor/CompositorConnection.h
+++ b/Libraries/LibWeb/Compositor/CompositorConnection.h
@@ -36,9 +36,6 @@
namespace Web::Compositor {
class CompositorConnectionFrameSink;
-// What a test of the transport, which has no Paint thread, reaches a connection's frame sink through. Only the test
-// defines it.
-struct TransportTestAccess;
class WEB_API CompositorConnection final
: public IPC::ConnectionToServer<CompositorWebContentClientEndpoint, CompositorWebContentServerEndpoint>
@@ -104,10 +101,6 @@ public:
Function<void()> on_request_video_presentation_channel;
private:
- // Only a test of the transport hands a frame straight to the compositor.
- friend struct TransportTestAccess;
- void submit_frame_for_testing(CompositorFrame&&);
-
struct PendingScreenshot {
NonnullRefPtr<Gfx::Bitmap> target_bitmap;
diff --git a/Libraries/LibWeb/Internals/Internals.h b/Libraries/LibWeb/Internals/Internals.h
index d9a3dfe8ee8..9d1a0871e16 100644
--- a/Libraries/LibWeb/Internals/Internals.h
+++ b/Libraries/LibWeb/Internals/Internals.h
@@ -309,7 +309,6 @@ public:
void set_media_element_seeking(HTML::HTMLMediaElement&, bool seeking);
void disconnect_media_server();
void set_page_muted(bool muted);
- WebIDL::UnsignedLongLong active_image_style_value_animation_count();
String viewport_overflow_x();
private:
diff --git a/Services/Compositor/CompositorState.h b/Services/Compositor/CompositorState.h
index 27057b1992e..2caafa9197f 100644
--- a/Services/Compositor/CompositorState.h
+++ b/Services/Compositor/CompositorState.h
@@ -174,7 +174,6 @@ private:
public:
void present_pending_frames_for_testing() { present_pending_frames_on_vsync({}, MonotonicTime::now()); }
- void retire_idle_surplus_backing_stores_for_testing(Web::CompositorContextId context_id) { retire_idle_surplus_backing_stores(context_id); }
size_t pending_async_present_count_for_testing() const { return m_pending_async_presents.size(); }
// What was not published yet, for a caller that needs the compositor's state as of now.
diff --git a/Services/WebContent/PageClient.cpp b/Services/WebContent/PageClient.cpp
index 13426f1632d..5d1ea7fd095 100644
--- a/Services/WebContent/PageClient.cpp
+++ b/Services/WebContent/PageClient.cpp
@@ -2281,11 +2281,6 @@ void PageClient::did_output_js_console_message(WebView::ConsoleOutput console_ou
client().async_did_output_js_console_message(m_id, move(console_output));
}
-void PageClient::console_peer_did_misbehave(char const* reason)
-{
- client().did_misbehave(reason);
-}
-
static void gather_style_sheets(Vector<Web::CSS::StyleSheetIdentifier>& results, Web::CSS::StyleSheetState& sheet)
{
if (auto identifier = Web::CSS::style_sheet_identifier_for(sheet); identifier.has_value())
diff --git a/Services/WebContent/PageClient.h b/Services/WebContent/PageClient.h
index cd9778f25d1..12881b66e9e 100644
--- a/Services/WebContent/PageClient.h
+++ b/Services/WebContent/PageClient.h
@@ -123,7 +123,6 @@ public:
void did_execute_js_console_input(JsonValue const&);
void run_javascript(StringView js_source);
void did_output_js_console_message(WebView::ConsoleOutput);
- void console_peer_did_misbehave(char const* reason);
Vector<Web::CSS::StyleSheetIdentifier> list_style_sheets() const;
Vector<Web::HTML::ScriptRegistry::Description> list_devtools_sources() const;