[epiphany] Remove some code that's not doing anything



commit f0e577ebca8a092b0ddd6bfe7e38094fb54079ba
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Mar 25 23:15:42 2018 -0500

    Remove some code that's not doing anything
    
    Way back in the day, we used to clear the back/forward list when
    clearing history. This is no longer possible, and that's not a problem
    at all.

 embed/ephy-web-view.c |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index a8cbb9d..4834451 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -595,20 +595,6 @@ ephy_web_view_is_history_frozen (EphyWebView *view)
   return view->history_frozen;
 }
 
-
-static void
-ephy_web_view_clear_history (EphyWebView *view)
-{
-  /* TODO: WebKitBackForwardList is read-only in WebKit2 */
-}
-
-static void
-ephy_web_view_history_cleared_cb (EphyHistoryService *history_service,
-                                  EphyWebView        *view)
-{
-  ephy_web_view_clear_history (view);
-}
-
 static void
 got_snapshot_path_cb (EphySnapshotService *service,
                       GAsyncResult        *result,
@@ -935,10 +921,6 @@ ephy_web_view_dispose (GObject *object)
     view->option_menu = NULL;
   }
 
-  g_signal_handlers_disconnect_by_func (view->history_service,
-                                        ephy_web_view_history_cleared_cb,
-                                        EPHY_WEB_VIEW (object));
-
   g_clear_object (&view->file_monitor);
 
   g_clear_object (&view->icon);
@@ -2652,10 +2634,6 @@ ephy_web_view_init (EphyWebView *web_view)
   web_view->history_service = ephy_embed_shell_get_global_history_service (ephy_embed_shell_get_default ());
   web_view->history_service_cancellable = g_cancellable_new ();
 
-  g_signal_connect_object (web_view->history_service,
-                           "cleared", G_CALLBACK (ephy_web_view_history_cleared_cb),
-                           web_view, 0);
-
   g_signal_connect (web_view, "decide-policy",
                     G_CALLBACK (decide_policy_cb),
                     NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]