[gnome-autoar] Remove unused virtual function tables



commit aeeee6982f9cfc870b4fe44be64535685650fa5a
Author: Ting-Wei Lan <lantw44 gmail com>
Date:   Wed Jan 29 11:44:29 2014 +0800

    Remove unused virtual function tables

 gnome-autoar/autoar-create.c  |   15 +++++----------
 gnome-autoar/autoar-create.h  |   10 ----------
 gnome-autoar/autoar-extract.c |   18 ++++++------------
 gnome-autoar/autoar-extract.h |   12 ------------
 4 files changed, 11 insertions(+), 44 deletions(-)
---
diff --git a/gnome-autoar/autoar-create.c b/gnome-autoar/autoar-create.c
index c98f262..68ca0cf 100644
--- a/gnome-autoar/autoar-create.c
+++ b/gnome-autoar/autoar-create.c
@@ -1118,8 +1118,7 @@ autoar_create_class_init (AutoarCreateClass *klass)
     g_signal_new ("decide-dest",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarCreateClass, decide_dest),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_generic,
                   G_TYPE_NONE,
                   1,
@@ -1140,8 +1139,7 @@ autoar_create_class_init (AutoarCreateClass *klass)
     g_signal_new ("progress",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarCreateClass, progress),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_generic,
                   G_TYPE_NONE,
                   2,
@@ -1159,8 +1157,7 @@ autoar_create_class_init (AutoarCreateClass *klass)
     g_signal_new ("cancelled",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarCreateClass, cancelled),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_VOID__VOID,
                   G_TYPE_NONE,
                   0);
@@ -1176,8 +1173,7 @@ autoar_create_class_init (AutoarCreateClass *klass)
     g_signal_new ("completed",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarCreateClass, completed),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_VOID__VOID,
                   G_TYPE_NONE,
                   0);
@@ -1197,8 +1193,7 @@ autoar_create_class_init (AutoarCreateClass *klass)
     g_signal_new ("error",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarCreateClass, error),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_generic,
                   G_TYPE_NONE,
                   1,
diff --git a/gnome-autoar/autoar-create.h b/gnome-autoar/autoar-create.h
index 0202111..2ccac3e 100644
--- a/gnome-autoar/autoar-create.h
+++ b/gnome-autoar/autoar-create.h
@@ -54,16 +54,6 @@ struct _AutoarCreate
 struct _AutoarCreateClass
 {
   GObjectClass parent_class;
-
-  void (* decide_dest)(AutoarCreate *arcreate,
-                       GFile *destination);
-  void (* progress)   (AutoarCreate *arcreate,
-                       guint64 completed_size,
-                       guint completed_files);
-  void (* cancelled)  (AutoarCreate *arcreate);
-  void (* completed)  (AutoarCreate *arcreate);
-  void (* error)      (AutoarCreate *arcreate,
-                       GError *error);
 };
 
 /**
diff --git a/gnome-autoar/autoar-extract.c b/gnome-autoar/autoar-extract.c
index 3eaeefd..384f506 100644
--- a/gnome-autoar/autoar-extract.c
+++ b/gnome-autoar/autoar-extract.c
@@ -1367,8 +1367,7 @@ autoar_extract_class_init (AutoarExtractClass *klass)
     g_signal_new ("scanned",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarExtractClass, scanned),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_VOID__UINT,
                   G_TYPE_NONE,
                   1,
@@ -1386,8 +1385,7 @@ autoar_extract_class_init (AutoarExtractClass *klass)
     g_signal_new ("decide-dest",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarExtractClass, decide_dest),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_generic,
                   G_TYPE_NONE,
                   1,
@@ -1405,8 +1403,7 @@ autoar_extract_class_init (AutoarExtractClass *klass)
     g_signal_new ("progress",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarExtractClass, progress),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_generic,
                   G_TYPE_NONE,
                   2,
@@ -1424,8 +1421,7 @@ autoar_extract_class_init (AutoarExtractClass *klass)
     g_signal_new ("cancelled",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarExtractClass, cancelled),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_VOID__VOID,
                   G_TYPE_NONE,
                   0);
@@ -1441,8 +1437,7 @@ autoar_extract_class_init (AutoarExtractClass *klass)
     g_signal_new ("completed",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarExtractClass, completed),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_VOID__VOID,
                   G_TYPE_NONE,
                   0);
@@ -1462,8 +1457,7 @@ autoar_extract_class_init (AutoarExtractClass *klass)
     g_signal_new ("error",
                   type,
                   G_SIGNAL_RUN_LAST,
-                  G_STRUCT_OFFSET (AutoarExtractClass, error),
-                  NULL, NULL,
+                  0, NULL, NULL,
                   g_cclosure_marshal_generic,
                   G_TYPE_NONE,
                   1,
diff --git a/gnome-autoar/autoar-extract.h b/gnome-autoar/autoar-extract.h
index 2cfea6c..be97e83 100644
--- a/gnome-autoar/autoar-extract.h
+++ b/gnome-autoar/autoar-extract.h
@@ -54,18 +54,6 @@ struct _AutoarExtract
 struct _AutoarExtractClass
 {
   GObjectClass parent_class;
-
-  void (* scanned)    (AutoarExtract *arextract,
-                       guint files);
-  void (* decide_dest)(AutoarExtract *arextract,
-                       GFile *destination);
-  void (* progress)   (AutoarExtract *arextract,
-                       gdouble fraction_size,
-                       gdouble fraction_files);
-  void (* cancelled)  (AutoarExtract *arextract);
-  void (* completed)  (AutoarExtract *arextract);
-  void (* error)      (AutoarExtract *arextract,
-                       GError *error);
 };
 
 /**


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