Remove unused "finalize" functions.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 25 Sep 2012 22:47:04 +0000 (15:47 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 26 Sep 2012 04:20:52 +0000 (21:20 -0700)
A finalize function that just calls into the parent class finalize
function is a no-op that need not exist.

lib/gtk-contrib/psppire-sheet.c
src/ui/gui/psppire-dialog.c

index 0819bb31749c7afed6069d56f71bbc4fabb8124d..19406edc9c9418d344a343e232a64cb42c61299b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2006, 2008, 2009, 2011 Free Software Foundation
+  Copyright (C) 2006, 2008, 2009, 2011, 2012 Free Software Foundation
 
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -444,7 +444,6 @@ rectangle_from_cell (PsppireSheet *sheet, gint row, gint col,
 static void psppire_sheet_class_init            (PsppireSheetClass *klass);
 static void psppire_sheet_init                          (PsppireSheet *sheet);
 static void psppire_sheet_dispose                       (GObject *object);
-static void psppire_sheet_finalize                      (GObject *object);
 static void psppire_sheet_style_set             (GtkWidget *widget,
                                                  GtkStyle *previous_style);
 static void psppire_sheet_realize                       (GtkWidget *widget);
@@ -1036,7 +1035,6 @@ psppire_sheet_class_init (PsppireSheetClass *klass)
   container_class->set_focus_child = NULL;
 
   object_class->dispose = psppire_sheet_dispose;
-  object_class->finalize = psppire_sheet_finalize;
 
   cell_padding_spec =
     g_param_spec_boxed ("cell-padding",
@@ -1695,16 +1693,6 @@ psppire_sheet_set_scroll_adjustments (PsppireSheet *sheet,
   return TRUE;
 }
 
-static void
-psppire_sheet_finalize (GObject *object)
-{
-  g_return_if_fail (object != NULL);
-  g_return_if_fail (PSPPIRE_IS_SHEET (object));
-
-  if (G_OBJECT_CLASS (parent_class)->finalize)
-    (*G_OBJECT_CLASS (parent_class)->finalize) (object);
-}
-
 static void
 psppire_sheet_dispose  (GObject *object)
 {
index ee44512f645b27cc1f92aee1752282311d962a2e..9c854a699e66f153ef878cc8faa4867d780b3b33 100644 (file)
@@ -86,18 +86,6 @@ psppire_dialog_get_type (void)
 static GObjectClass     *parent_class = NULL;
 
 
-static void
-psppire_dialog_finalize (GObject *object)
-{
-  g_return_if_fail (object != NULL);
-  g_return_if_fail (PSPPIRE_IS_DIALOG (object));
-
-  if (G_OBJECT_CLASS (parent_class)->finalize)
-    G_OBJECT_CLASS (parent_class)->finalize (object);
-}
-
-
-
 /* Properties */
 enum
 {
@@ -282,8 +270,6 @@ psppire_dialog_class_init (PsppireDialogClass *class)
                  G_TYPE_STRING);
 
 
-  object_class->finalize = psppire_dialog_finalize;
-
   parent_class = g_type_class_peek_parent (class);
 }