[gnome-software: 2/3] gs-updates-page: Remove unused sizegroup




commit ec8858e58d1882b93d3fafb5e4457c2a43a69c34
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Mar 3 15:40:13 2022 +0000

    gs-updates-page: Remove unused sizegroup
    
    It’s been unused since commit 1e97ef8be038.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/gs-updates-page.c    | 4 ----
 src/gs-updates-section.c | 1 -
 src/gs-updates-section.h | 1 -
 3 files changed, 6 deletions(-)
---
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index 0ef53f67f..a786d8d61 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -77,7 +77,6 @@ struct _GsUpdatesPage
        GtkWidget               *infobar_end_of_life;
        GtkWidget               *label_end_of_life;
 
-       GtkSizeGroup            *sizegroup_image;
        GtkSizeGroup            *sizegroup_name;
        GtkSizeGroup            *sizegroup_desc;
        GtkSizeGroup            *sizegroup_button_label;
@@ -1229,7 +1228,6 @@ gs_updates_page_setup (GsPage *page,
        for (guint i = 0; i < GS_UPDATES_SECTION_KIND_LAST; i++) {
                self->sections[i] = gs_updates_section_new (i, plugin_loader, page);
                gs_updates_section_set_size_groups (self->sections[i],
-                                                   self->sizegroup_image,
                                                    self->sizegroup_name,
                                                    self->sizegroup_desc,
                                                    self->sizegroup_button_label,
@@ -1392,7 +1390,6 @@ gs_updates_page_dispose (GObject *object)
        g_clear_object (&self->settings);
        g_clear_object (&self->desktop_settings);
 
-       g_clear_object (&self->sizegroup_image);
        g_clear_object (&self->sizegroup_name);
        g_clear_object (&self->sizegroup_desc);
        g_clear_object (&self->sizegroup_button_label);
@@ -1464,7 +1461,6 @@ gs_updates_page_init (GsUpdatesPage *self)
        self->settings = g_settings_new ("org.gnome.software");
        self->desktop_settings = g_settings_new ("org.gnome.desktop.interface");
 
-       self->sizegroup_image = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
        self->sizegroup_name = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
        self->sizegroup_desc = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
        self->sizegroup_button_label = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
diff --git a/src/gs-updates-section.c b/src/gs-updates-section.c
index c3a835198..6ac5dbecc 100644
--- a/src/gs-updates-section.c
+++ b/src/gs-updates-section.c
@@ -622,7 +622,6 @@ gs_updates_section_class_init (GsUpdatesSectionClass *klass)
 
 void
 gs_updates_section_set_size_groups (GsUpdatesSection *self,
-                                   GtkSizeGroup *image,
                                    GtkSizeGroup *name,
                                    GtkSizeGroup *desc,
                                    GtkSizeGroup *button_label,
diff --git a/src/gs-updates-section.h b/src/gs-updates-section.h
index 7c6c382ff..84b06cfba 100644
--- a/src/gs-updates-section.h
+++ b/src/gs-updates-section.h
@@ -37,7 +37,6 @@ void                   gs_updates_section_add_app             (GsUpdatesSection       *self,
                                                                 GsApp                  *app);
 void                    gs_updates_section_remove_all          (GsUpdatesSection       *self);
 void                    gs_updates_section_set_size_groups     (GsUpdatesSection       *self,
-                                                                GtkSizeGroup           *image,
                                                                 GtkSizeGroup           *name,
                                                                 GtkSizeGroup           *desc,
                                                                 GtkSizeGroup           *button_label,


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