[epiphany] embed: Remove unused EphyEmbedShell::prepare-close signal



commit 36c5d9be3ca9a0617c7964414964c7fc3ea75127
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Thu Jan 14 10:57:59 2016 +0100

    embed: Remove unused EphyEmbedShell::prepare-close signal

 embed/ephy-embed-shell.c |   23 -----------------------
 embed/ephy-embed-shell.h |    3 ---
 src/ephy-session.c       |    2 --
 3 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 2efacdb..090645b 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -63,7 +63,6 @@ typedef struct {
 
 enum
 {
-  PREPARE_CLOSE,
   RESTORED_WINDOW,
   WEB_VIEW_CREATED,
   PAGE_CREATED,
@@ -479,12 +478,6 @@ ephy_embed_shell_get_encodings (EphyEmbedShell *shell)
 }
 
 void
-ephy_embed_shell_prepare_close (EphyEmbedShell *shell)
-{
-  g_signal_emit (shell, signals[PREPARE_CLOSE], 0);
-}
-
-void
 ephy_embed_shell_restored_window (EphyEmbedShell *shell)
 {
   g_signal_emit (shell, signals[RESTORED_WINDOW], 0);
@@ -823,22 +816,6 @@ ephy_embed_shell_class_init (EphyEmbedShellClass *klass)
                                      object_properties);
 
 /**
- * EphyEmbed::prepare-close:
- * @shell: the #EphyEmbedShell
- * 
- * The ::prepare-close signal is emitted when epiphany is preparing to
- * quit on command from the session manager. You can use it when you need
- * to do something special (shut down a service, for example).
- **/
-  signals[PREPARE_CLOSE] =
-    g_signal_new ("prepare-close",
-                  EPHY_TYPE_EMBED_SHELL,
-                  G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (EphyEmbedShellClass, prepare_close),
-                  NULL, NULL, NULL,
-                  G_TYPE_NONE, 0);
-
-/**
  * EphyEmbedShell::finished-restoring-window:
  * @shell: the #EphyEmbedShell
  *
diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h
index c71f72e..f49a1ea 100644
--- a/embed/ephy-embed-shell.h
+++ b/embed/ephy-embed-shell.h
@@ -51,8 +51,6 @@ struct _EphyEmbedShellClass
 {
   GtkApplicationClass parent_class;
 
-  void    (* prepare_close)    (EphyEmbedShell *shell);
-
   void    (* restored_window)  (EphyEmbedShell *shell);
 };
 
@@ -60,7 +58,6 @@ EphyEmbedShell    *ephy_embed_shell_get_default                (void);
 WebKitWebContext  *ephy_embed_shell_get_web_context            (EphyEmbedShell   *shell);
 GObject           *ephy_embed_shell_get_global_history_service (EphyEmbedShell   *shell);
 GObject           *ephy_embed_shell_get_encodings              (EphyEmbedShell   *shell);
-void               ephy_embed_shell_prepare_close              (EphyEmbedShell   *shell);
 void               ephy_embed_shell_restored_window            (EphyEmbedShell   *shell);
 void               ephy_embed_shell_set_page_setup             (EphyEmbedShell   *shell,
                                                                 GtkPageSetup     *page_setup);
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 0578442..4b1f422 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -542,8 +542,6 @@ ephy_session_close (EphySession *session)
                EphySessionPrivate *priv = session->priv;
 
                priv->dont_save = TRUE;
-
-               ephy_embed_shell_prepare_close (ephy_embed_shell_get_default ());
        }
 }
 


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