Bladeren bron

LibWeb: Remove now-duplicated actions from IPWV regarding text selection

Timothy Flynn 4 jaren geleden
bovenliggende
commit
22ab512f39
2 gewijzigde bestanden met toevoegingen van 0 en 15 verwijderingen
  1. 0 9
      Userland/Libraries/LibWeb/InProcessWebView.cpp
  2. 0 6
      Userland/Libraries/LibWeb/InProcessWebView.h

+ 0 - 9
Userland/Libraries/LibWeb/InProcessWebView.cpp

@@ -7,7 +7,6 @@
 #include <AK/URL.h>
 #include <LibCore/File.h>
 #include <LibCore/MimeData.h>
-#include <LibGUI/Action.h>
 #include <LibGUI/Application.h>
 #include <LibGUI/Clipboard.h>
 #include <LibGUI/InputBox.h>
@@ -38,14 +37,6 @@ InProcessWebView::InProcessWebView()
     set_should_hide_unnecessary_scrollbars(true);
     set_background_role(ColorRole::Base);
     set_focus_policy(GUI::FocusPolicy::StrongFocus);
-
-    m_copy_action = GUI::CommonActions::make_copy_action([this](auto&) {
-        GUI::Clipboard::the().set_plain_text(selected_text());
-    });
-
-    m_select_all_action = GUI::CommonActions::make_select_all_action([this](auto&) {
-        select_all();
-    });
 }
 
 InProcessWebView::~InProcessWebView()

+ 0 - 6
Userland/Libraries/LibWeb/InProcessWebView.h

@@ -42,9 +42,6 @@ public:
 
     void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; }
 
-    GUI::Action& select_all_action() { return *m_select_all_action; }
-    GUI::Action& copy_action() { return *m_copy_action; }
-
     String selected_text() const;
     void select_all();
 
@@ -99,9 +96,6 @@ private:
     bool m_should_show_line_box_borders { false };
 
     NonnullOwnPtr<Page> m_page;
-
-    RefPtr<GUI::Action> m_copy_action;
-    RefPtr<GUI::Action> m_select_all_action;
 };
 
 }