فهرست منبع

LibWeb: Remove unused code

The code that used these helpers has been moved a while ago to PageHost.
Sebastian Zaha 2 سال پیش
والد
کامیت
065c8cefb8
2فایلهای تغییر یافته به همراه0 افزوده شده و 17 حذف شده
  1. 0 14
      Userland/Libraries/LibWeb/Page/EventHandler.cpp
  2. 0 3
      Userland/Libraries/LibWeb/Page/EventHandler.h

+ 0 - 14
Userland/Libraries/LibWeb/Page/EventHandler.cpp

@@ -130,20 +130,6 @@ EventHandler::EventHandler(Badge<HTML::BrowsingContext>, HTML::BrowsingContext&
 
 EventHandler::~EventHandler() = default;
 
-Layout::Viewport const* EventHandler::layout_root() const
-{
-    if (!m_browsing_context->active_document())
-        return nullptr;
-    return m_browsing_context->active_document()->layout_node();
-}
-
-Layout::Viewport* EventHandler::layout_root()
-{
-    if (!m_browsing_context->active_document())
-        return nullptr;
-    return m_browsing_context->active_document()->layout_node();
-}
-
 Painting::PaintableBox* EventHandler::paint_root()
 {
     if (!m_browsing_context->active_document())

+ 0 - 3
Userland/Libraries/LibWeb/Page/EventHandler.h

@@ -51,9 +51,6 @@ private:
     };
     Optional<Target> target_for_mouse_position(CSSPixelPoint position);
 
-    Layout::Viewport* layout_root();
-    Layout::Viewport const* layout_root() const;
-
     Painting::PaintableBox* paint_root();
     Painting::PaintableBox const* paint_root() const;