[balsa] Cleanup after using G_DECLARE_FINAL_TYPE()



commit be2cf198f4157ba5473ce846cb1fde40f181da54
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Jul 23 17:09:37 2019 -0400

    Cleanup after using G_DECLARE_FINAL_TYPE()
    
    * libbalsa/mailbox_imap.c: drop redundant class struct declaration;
    * libbalsa/mailbox_maildir.c: ditto;
    * libbalsa/mailbox_mbox.c: ditto;
    * libbalsa/mailbox_mh.c: ditto;
    * libbalsa/mailbox_pop3.c: ditto;
    * libbalsa/message.c: ditto;
    * src/ab-window.c: ditto;
    * src/balsa-cite-bar.c: ditto; drop parant_class variable;
      (balsa_cite_bar_class_init): no more parent_class.

 ChangeLog                  | 15 +++++++++++++++
 libbalsa/mailbox_imap.c    |  4 ----
 libbalsa/mailbox_maildir.c |  4 ----
 libbalsa/mailbox_mbox.c    |  4 ----
 libbalsa/mailbox_mh.c      |  4 ----
 libbalsa/mailbox_pop3.c    |  6 ------
 libbalsa/message.c         | 10 ----------
 src/ab-window.c            |  5 -----
 src/balsa-cite-bar.c       |  8 --------
 9 files changed, 15 insertions(+), 45 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9c6126744..713948c47 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2019-07-23  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Cleanup after using G_DECLARE_FINAL_TYPE()
+
+       * libbalsa/mailbox_imap.c: drop redundant class struct
+       declaration;
+       * libbalsa/mailbox_maildir.c: ditto;
+       * libbalsa/mailbox_mbox.c: ditto;
+       * libbalsa/mailbox_mh.c: ditto;
+       * libbalsa/mailbox_pop3.c: ditto;
+       * libbalsa/message.c: ditto;
+       * src/ab-window.c: ditto;
+       * src/balsa-cite-bar.c: ditto; drop parant_class variable;
+         (balsa_cite_bar_class_init): no more parent_class.
+
 2019-07-23  Peter Bloomfield  <pbloomfield bellsouth net>
 
        * libbalsa/libbalsa-gpgme-widgets.c (create_uid_str): Do not
diff --git a/libbalsa/mailbox_imap.c b/libbalsa/mailbox_imap.c
index eb663b9a1..106a92031 100644
--- a/libbalsa/mailbox_imap.c
+++ b/libbalsa/mailbox_imap.c
@@ -82,10 +82,6 @@ struct _LibBalsaMailboxImap {
     gboolean disconnected;
 };
 
-struct _LibBalsaMailboxImapClass {
-    LibBalsaMailboxRemoteClass klass;
-};
-
 struct message_info {
     LibBalsaMessage *message;
     LibBalsaMessageFlag user_flags;
diff --git a/libbalsa/mailbox_maildir.c b/libbalsa/mailbox_maildir.c
index cb731dba0..72e9b8d3a 100644
--- a/libbalsa/mailbox_maildir.c
+++ b/libbalsa/mailbox_maildir.c
@@ -111,10 +111,6 @@ struct _LibBalsaMailboxMaildir {
     gchar *tmpdir;
 };
 
-struct _LibBalsaMailboxMaildirClass {
-    LibBalsaMailboxLocalClass klass;
-};
-
 G_DEFINE_TYPE(LibBalsaMailboxMaildir,
               libbalsa_mailbox_maildir,
               LIBBALSA_TYPE_MAILBOX_LOCAL)
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index 1e3fa89bf..efdeb21a9 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -92,10 +92,6 @@ libbalsa_mailbox_mbox_total_messages(LibBalsaMailbox * mailbox);
 static void libbalsa_mailbox_mbox_lock_store(LibBalsaMailbox * mailbox,
                                              gboolean lock);
 
-struct _LibBalsaMailboxMboxClass {
-    LibBalsaMailboxLocalClass klass;
-};
-
 struct _LibBalsaMailboxMbox {
     LibBalsaMailboxLocal parent;
 
diff --git a/libbalsa/mailbox_mh.c b/libbalsa/mailbox_mh.c
index 4ccd821ad..611bde062 100644
--- a/libbalsa/mailbox_mh.c
+++ b/libbalsa/mailbox_mh.c
@@ -92,10 +92,6 @@ struct _LibBalsaMailboxMh {
     guint last_fileno;
 };
 
-struct _LibBalsaMailboxMhClass {
-    LibBalsaMailboxLocalClass klass;
-};
-
 G_DEFINE_TYPE(LibBalsaMailboxMh,
               libbalsa_mailbox_mh,
               LIBBALSA_TYPE_MAILBOX_LOCAL)
diff --git a/libbalsa/mailbox_pop3.c b/libbalsa/mailbox_pop3.c
index 907ccb2e6..525c6a016 100644
--- a/libbalsa/mailbox_pop3.c
+++ b/libbalsa/mailbox_pop3.c
@@ -41,12 +41,6 @@ enum {
     LAST_SIGNAL
 };
 
-struct _LibBalsaMailboxPOP3Class {
-    LibBalsaMailboxRemoteClass klass;
-
-    void (*config_changed) (LibBalsaMailboxPOP3 *mailbox_pop3);
-};
-
 struct _LibBalsaMailboxPOP3 {
     LibBalsaMailboxRemote mailbox;
 
diff --git a/libbalsa/message.c b/libbalsa/message.c
index 8a2101fd4..8f4251c70 100644
--- a/libbalsa/message.c
+++ b/libbalsa/message.c
@@ -53,16 +53,6 @@
 static void libbalsa_message_dispose(GObject * object);
 static void libbalsa_message_finalize(GObject * object);
 
-struct _LibBalsaMessageClass {
-    GObjectClass parent_class;
-
-    /* deal with flags being set/unset */
-    /* Signal: */
-    void (*status_changed) (LibBalsaMessage    *message,
-                            LibBalsaMessageFlag flag,
-                            gboolean);
-};
-
 struct _LibBalsaMessage {
     GObject object;
 
diff --git a/src/ab-window.c b/src/ab-window.c
index f2408ccd8..ecd0da121 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -77,11 +77,6 @@ static gint balsa_ab_window_compare_entries(GtkTreeModel * model,
                                                GtkTreeIter * iter2,
                                                gpointer data);
 
-struct _BalsaAbWindowClass
-{
-    GtkDialogClass parent_class;
-};
-
 struct _BalsaAbWindow
 {
     GtkDialog parent;
diff --git a/src/balsa-cite-bar.c b/src/balsa-cite-bar.c
index 606937a6d..86b1c4c8b 100644
--- a/src/balsa-cite-bar.c
+++ b/src/balsa-cite-bar.c
@@ -31,10 +31,6 @@ struct _BalsaCiteBar {
     gint space;
 };
 
-struct _BalsaCiteBarClass {
-    GtkWidgetClass parent_class;
-};
-
 static void balsa_cite_bar_get_preferred_width (GtkWidget * widget,
                                                 gint      * minimum_width,
                                                 gint      * natural_width);
@@ -46,8 +42,6 @@ static gboolean balsa_cite_bar_draw            (GtkWidget * widget,
 
 G_DEFINE_TYPE(BalsaCiteBar, balsa_cite_bar, GTK_TYPE_WIDGET)
 
-static GtkWidgetClass *parent_class = NULL;
-
 static void
 balsa_cite_bar_class_init(BalsaCiteBarClass * class)
 {
@@ -55,8 +49,6 @@ balsa_cite_bar_class_init(BalsaCiteBarClass * class)
 
     widget_class = (GtkWidgetClass *) class;
 
-    parent_class = g_type_class_peek_parent(class);
-
     widget_class->get_preferred_width  = balsa_cite_bar_get_preferred_width;
     widget_class->get_preferred_height = balsa_cite_bar_get_preferred_height;
     widget_class->draw                 = balsa_cite_bar_draw;


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