[gnome-control-center] info: Remove unused code
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] info: Remove unused code
- Date: Sun, 21 May 2017 13:16:28 +0000 (UTC)
commit 7bebbc00990a4417fee58bd9d01cb2c24fdbd041
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sun May 21 09:08:42 2017 +0530
info: Remove unused code
The GraphicsData structure wasn't being used
in CcInfoPanel's code, and can be safely dropped.
https://bugzilla.gnome.org/show_bug.cgi?id=779216
panels/info/cc-info-panel.c | 30 ------------------------------
1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 71d3ee5..6def9b3 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -64,11 +64,6 @@ CC_PANEL_REGISTER (CcInfoPanel, cc_info_panel)
#define INFO_PANEL_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), CC_TYPE_INFO_PANEL, CcInfoPanelPrivate))
-typedef struct {
- /* Will be one or 2 GPU name strings, or "Unknown" */
- char *hardware_string;
-} GraphicsData;
-
typedef struct
{
const char *content_type;
@@ -83,11 +78,6 @@ struct _CcInfoPanelPrivate
{
GtkBuilder *builder;
GtkWidget *extra_options_dialog;
- char *gnome_version;
- char *gnome_distributor;
- char *gnome_date;
-
- GCancellable *cancellable;
/* Free space */
GList *primary_mounts;
@@ -96,25 +86,14 @@ struct _CcInfoPanelPrivate
/* Media */
GSettings *media_settings;
GtkWidget *other_application_combo;
-
- GraphicsData *graphics_data;
};
-
-static void
-graphics_data_free (GraphicsData *gdata)
-{
- g_free (gdata->hardware_string);
- g_slice_free (GraphicsData, gdata);
-}
-
static void
cc_info_panel_dispose (GObject *object)
{
CcInfoPanelPrivate *priv = CC_INFO_PANEL (object)->priv;
g_clear_object (&priv->builder);
- g_clear_pointer (&priv->graphics_data, graphics_data_free);
g_clear_pointer (&priv->extra_options_dialog, gtk_widget_destroy);
G_OBJECT_CLASS (cc_info_panel_parent_class)->dispose (object);
@@ -125,15 +104,6 @@ cc_info_panel_finalize (GObject *object)
{
CcInfoPanelPrivate *priv = CC_INFO_PANEL (object)->priv;
- if (priv->cancellable)
- {
- g_cancellable_cancel (priv->cancellable);
- g_clear_object (&priv->cancellable);
- }
- g_free (priv->gnome_version);
- g_free (priv->gnome_date);
- g_free (priv->gnome_distributor);
-
g_clear_object (&priv->media_settings);
G_OBJECT_CLASS (cc_info_panel_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]