[seahorse/wip/nielsdg/pgp-actions-cleanup: 3/3] pgp: Actions: Remove unused GpgmeKeyActions



commit 04557c0777c285153615a24850e0a6209460b87e
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Fri Feb 22 08:43:05 2019 +0100

    pgp: Actions: Remove unused GpgmeKeyActions
    
    This became obsolete with the move of GtkActions to GActions

 pgp/seahorse-pgp-actions.c | 47 ----------------------------------------------
 pgp/seahorse-pgp-actions.h |  2 --
 2 files changed, 49 deletions(-)
---
diff --git a/pgp/seahorse-pgp-actions.c b/pgp/seahorse-pgp-actions.c
index 677595bb..255c2119 100644
--- a/pgp/seahorse-pgp-actions.c
+++ b/pgp/seahorse-pgp-actions.c
@@ -189,50 +189,3 @@ seahorse_pgp_backend_actions_instance (void)
 
     return actions;
 }
-
-GType   seahorse_gpgme_key_actions_get_type       (void) G_GNUC_CONST;
-#define SEAHORSE_TYPE_GPGME_KEY_ACTIONS           (seahorse_gpgme_key_actions_get_type ())
-#define seahorse_gpgme_key_actions(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), 
SEAHORSE_PGP_TYPE_ACTIONS, SeahorseGpgmeKeyActions))
-#define seahorse_gpgme_key_actions_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), 
SEAHORSE_PGP_TYPE_ACTIONS, SeahorseGpgmeKeyActionsClass))
-#define SEAHORSE_PGP_IS_ACTIONS(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 
SEAHORSE_PGP_TYPE_ACTIONS))
-#define SEAHORSE_PGP_IS_ACTIONS_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), 
SEAHORSE_PGP_TYPE_ACTIONS))
-#define seahorse_gpgme_key_actions_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), 
SEAHORSE_PGP_TYPE_ACTIONS, SeahorseGpgmeKeyActionsClass))
-
-typedef struct {
-    SeahorseActionGroup parent_instance;
-} SeahorseGpgmeKeyActions;
-
-typedef struct {
-    SeahorseActionGroupClass parent_class;
-} SeahorseGpgmeKeyActionsClass;
-
-G_DEFINE_TYPE (SeahorseGpgmeKeyActions, seahorse_gpgme_key_actions, SEAHORSE_TYPE_ACTION_GROUP);
-
-static void
-seahorse_gpgme_key_actions_init (SeahorseGpgmeKeyActions *self)
-{
-}
-
-static void
-seahorse_gpgme_key_actions_class_init (SeahorseGpgmeKeyActionsClass *klass)
-{
-
-}
-
-SeahorseActionGroup *
-seahorse_gpgme_key_actions_instance (void)
-{
-    static SeahorseActionGroup *actions = NULL;
-
-    if (actions == NULL) {
-        actions = g_object_new (SEAHORSE_TYPE_GPGME_KEY_ACTIONS,
-                                "prefix", "gpgme",
-                                NULL);
-        g_object_add_weak_pointer (G_OBJECT (actions),
-                                   (gpointer *)&actions);
-    } else {
-        g_object_ref (actions);
-    }
-
-    return actions;
-}
diff --git a/pgp/seahorse-pgp-actions.h b/pgp/seahorse-pgp-actions.h
index 12370321..dd83bfa2 100644
--- a/pgp/seahorse-pgp-actions.h
+++ b/pgp/seahorse-pgp-actions.h
@@ -24,5 +24,3 @@
 #include <seahorse-common.h>
 
 SeahorseActionGroup * seahorse_pgp_backend_actions_instance    (void);
-
-SeahorseActionGroup * seahorse_gpgme_key_actions_instance      (void);


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