[gnome-software/gnome-3-22] trivial: Remove some unused variables
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] trivial: Remove some unused variables
- Date: Mon, 7 Nov 2016 13:40:53 +0000 (UTC)
commit ed847165f7123e8cb6c68b389ead74859d91a5a8
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 21 18:01:43 2016 +0100
trivial: Remove some unused variables
(cherry picked from commit 1228324b717ed266c2942c5d9c8fe2f06e678427)
src/gs-app-list.c | 3 ---
src/gs-app.c | 6 ------
src/plugins/gs-appstream.c | 1 -
src/plugins/gs-flatpak-symlinks.c | 1 -
4 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/gs-app-list.c b/src/gs-app-list.c
index 7228f4c..7447c5c 100644
--- a/src/gs-app-list.c
+++ b/src/gs-app-list.c
@@ -103,9 +103,6 @@ static void
gs_app_list_add_safe (GsAppList *list, GsApp *app)
{
const gchar *id;
-#if !AS_CHECK_VERSION(0,6,2)
- guint i;
-#endif
/* if we're lazy-loading the ID then we can't filter for duplicates */
id = gs_app_get_unique_id (app);
diff --git a/src/gs-app.c b/src/gs-app.c
index 2a2b0bd..ae0b481 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -2753,10 +2753,7 @@ gs_app_set_install_date (GsApp *app, guint64 install_date)
gboolean
gs_app_is_installed (GsApp *app)
{
- AsAppState state;
-
g_return_val_if_fail (GS_IS_APP (app), FALSE);
-
return (app->state == AS_APP_STATE_INSTALLED) ||
(app->state == AS_APP_STATE_UPDATABLE) ||
(app->state == AS_APP_STATE_UPDATABLE_LIVE) ||
@@ -2776,10 +2773,7 @@ gs_app_is_installed (GsApp *app)
gboolean
gs_app_is_updatable (GsApp *app)
{
- AsAppState state;
-
g_return_val_if_fail (GS_IS_APP (app), FALSE);
-
return (app->state == AS_APP_STATE_UPDATABLE) ||
(app->state == AS_APP_STATE_UPDATABLE_LIVE);
}
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index e530f8d..c060491 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -855,7 +855,6 @@ gs_appstream_store_add_category_apps (GsPlugin *plugin,
GCancellable *cancellable,
GError **error)
{
- GsPluginData *priv = gs_plugin_get_data (plugin);
GPtrArray *array;
GPtrArray *desktop_groups;
guint i;
diff --git a/src/plugins/gs-flatpak-symlinks.c b/src/plugins/gs-flatpak-symlinks.c
index 02eee2e..28f719e 100644
--- a/src/plugins/gs-flatpak-symlinks.c
+++ b/src/plugins/gs-flatpak-symlinks.c
@@ -45,7 +45,6 @@ gs_flatpak_symlinks_cleanup_kind (const gchar *cache_dir,
return FALSE;
}
while ((tmp = g_dir_read_name (dir)) != NULL) {
- gchar *str;
g_autofree gchar *fn = NULL;
g_autofree gchar *origin = NULL;
g_autofree gchar *prefix_colon = g_strdup_printf ("%s:", prefix);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]