[gnome-software/wip/kalev/merge-after-freeze: 1/4] trivial: Remove unused variables
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/merge-after-freeze: 1/4] trivial: Remove unused variables
- Date: Fri, 20 Mar 2015 17:05:16 +0000 (UTC)
commit a07abf2b212003e5b376a32323c1137abd1da6ba
Author: Kalev Lember <kalevlember gmail com>
Date: Thu Mar 19 17:42:47 2015 +0100
trivial: Remove unused variables
src/gs-history-dialog.c | 4 ----
src/gs-shell-extras.c | 1 -
src/plugins/gs-plugin-packagekit-refine.c | 2 --
src/plugins/gs-plugin-packagekit.c | 1 -
4 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/gs-history-dialog.c b/src/gs-history-dialog.c
index bdd9e9d..b8fe46e 100644
--- a/src/gs-history-dialog.c
+++ b/src/gs-history-dialog.c
@@ -31,7 +31,6 @@
struct _GsHistoryDialogPrivate
{
- GsApp *app;
GtkSizeGroup *sizegroup_state;
GtkSizeGroup *sizegroup_timestamp;
GtkSizeGroup *sizegroup_version;
@@ -195,9 +194,6 @@ gs_history_dialog_finalize (GObject *object)
g_object_unref (priv->sizegroup_timestamp);
g_object_unref (priv->sizegroup_version);
- if (priv->app != NULL)
- g_object_unref (priv->app);
-
G_OBJECT_CLASS (gs_history_dialog_parent_class)->finalize (object);
}
diff --git a/src/gs-shell-extras.c b/src/gs-shell-extras.c
index bebcdce..93f235b 100644
--- a/src/gs-shell-extras.c
+++ b/src/gs-shell-extras.c
@@ -300,7 +300,6 @@ create_missing_app (SearchData *search_data)
GsShellExtras *shell_extras = search_data->shell_extras;
GsApp *app;
GString *summary_missing;
- _cleanup_free_ gchar *description = NULL;
_cleanup_free_ gchar *name = NULL;
_cleanup_free_ gchar *url = NULL;
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index ff6e18f..fedfe2f 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -257,7 +257,6 @@ gs_plugin_packagekit_resolve_packages (GsPlugin *plugin,
guint i;
_cleanup_object_unref_ PkError *error_code = NULL;
_cleanup_object_unref_ PkResults *results = NULL;
- _cleanup_ptrarray_unref_ GPtrArray *array = NULL;
_cleanup_ptrarray_unref_ GPtrArray *package_ids = NULL;
_cleanup_ptrarray_unref_ GPtrArray *packages = NULL;
@@ -313,7 +312,6 @@ gs_plugin_packagekit_refine_from_desktop (GsPlugin *plugin,
const gchar *to_array[] = { NULL, NULL };
_cleanup_object_unref_ PkError *error_code = NULL;
_cleanup_object_unref_ PkResults *results = NULL;
- _cleanup_ptrarray_unref_ GPtrArray *array = NULL;
_cleanup_ptrarray_unref_ GPtrArray *packages = NULL;
to_array[0] = filename;
diff --git a/src/plugins/gs-plugin-packagekit.c b/src/plugins/gs-plugin-packagekit.c
index 12ef1f9..fe21ba3 100644
--- a/src/plugins/gs-plugin-packagekit.c
+++ b/src/plugins/gs-plugin-packagekit.c
@@ -505,7 +505,6 @@ gs_plugin_app_remove (GsPlugin *plugin,
guint cnt = 0;
_cleanup_object_unref_ PkError *error_code = NULL;
_cleanup_object_unref_ PkResults *results = NULL;
- _cleanup_ptrarray_unref_ GPtrArray *array = NULL;
_cleanup_strv_free_ gchar **package_ids = NULL;
/* only process this app if was created by this plugin */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]