[gnome-control-center] printers: Remove unused finalize methods
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Remove unused finalize methods
- Date: Thu, 2 Jul 2020 16:25:33 +0000 (UTC)
commit 958a7766fdd85c33ff8832fbf33b666be1ed60de
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Jun 26 15:47:35 2020 +1200
printers: Remove unused finalize methods
panels/printers/cc-printers-panel.c | 7 -------
panels/printers/pp-cups.c | 9 ---------
panels/printers/pp-printer.c | 7 -------
3 files changed, 23 deletions(-)
---
diff --git a/panels/printers/cc-printers-panel.c b/panels/printers/cc-printers-panel.c
index 1c77434ef..73645751e 100644
--- a/panels/printers/cc-printers-panel.c
+++ b/panels/printers/cc-printers-panel.c
@@ -323,12 +323,6 @@ cc_printers_panel_dispose (GObject *object)
G_OBJECT_CLASS (cc_printers_panel_parent_class)->dispose (object);
}
-static void
-cc_printers_panel_finalize (GObject *object)
-{
- G_OBJECT_CLASS (cc_printers_panel_parent_class)->finalize (object);
-}
-
static const char *
cc_printers_panel_get_help_uri (CcPanel *panel)
{
@@ -345,7 +339,6 @@ cc_printers_panel_class_init (CcPrintersPanelClass *klass)
object_class->set_property = cc_printers_panel_set_property;
object_class->constructed = cc_printers_panel_constructed;
object_class->dispose = cc_printers_panel_dispose;
- object_class->finalize = cc_printers_panel_finalize;
panel_class->get_help_uri = cc_printers_panel_get_help_uri;
diff --git a/panels/printers/pp-cups.c b/panels/printers/pp-cups.c
index 708690834..96ace837e 100644
--- a/panels/printers/pp-cups.c
+++ b/panels/printers/pp-cups.c
@@ -38,18 +38,9 @@ struct _PpCups
G_DEFINE_TYPE (PpCups, pp_cups, G_TYPE_OBJECT);
-static void
-pp_cups_finalize (GObject *object)
-{
- G_OBJECT_CLASS (pp_cups_parent_class)->finalize (object);
-}
-
static void
pp_cups_class_init (PpCupsClass *klass)
{
- GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
-
- gobject_class->finalize = pp_cups_finalize;
}
static void
diff --git a/panels/printers/pp-printer.c b/panels/printers/pp-printer.c
index 5a823ba44..1f1feca20 100644
--- a/panels/printers/pp-printer.c
+++ b/panels/printers/pp-printer.c
@@ -50,12 +50,6 @@ pp_printer_dispose (GObject *object)
G_OBJECT_CLASS (pp_printer_parent_class)->dispose (object);
}
-static void
-pp_printer_finalize (GObject *object)
-{
- G_OBJECT_CLASS (pp_printer_parent_class)->finalize (object);
-}
-
static void
pp_printer_get_property (GObject *object,
guint property_id,
@@ -104,7 +98,6 @@ pp_printer_class_init (PpPrinterClass *klass)
gobject_class->set_property = pp_printer_set_property;
gobject_class->get_property = pp_printer_get_property;
gobject_class->dispose = pp_printer_dispose;
- gobject_class->finalize = pp_printer_finalize;
g_object_class_install_property (gobject_class, PROP_NAME,
g_param_spec_string ("printer-name",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]