diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
index 75b5f4d7592..782b5c4bdc6 100644
--- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
+++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp
@@ -682,25 +682,6 @@ void BrowsingContext::set_window_proxy(JS::GCPtr window_proxy)
m_window_proxy = move(window_proxy);
}
-void BrowsingContext::scroll_offset_did_change()
-{
- // https://w3c.github.io/csswg-drafts/cssom-view-1/#scrolling-events
- // Whenever a viewport gets scrolled (whether in response to user interaction or by an API), the user agent must run these steps:
-
- // 1. Let doc be the viewport’s associated Document.
- auto* doc = active_document();
- VERIFY(doc);
-
- // 2. If doc is already in doc’s pending scroll event targets, abort these steps.
- for (auto& target : doc->pending_scroll_event_targets()) {
- if (target.ptr() == doc)
- return;
- }
-
- // 3. Append doc to doc’s pending scroll event targets.
- doc->pending_scroll_event_targets().append(*doc);
-}
-
BrowsingContextGroup* BrowsingContext::group()
{
return m_group;
diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
index a2ffbebd6c6..bbff052cbee 100644
--- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
+++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.h
@@ -203,8 +203,6 @@ private:
void reset_cursor_blink_cycle();
- void scroll_offset_did_change();
-
WeakPtr m_page;
Web::EventHandler m_event_handler;