From 4f9ea6bb5715c69c560e8ca599c0dc4f2977bf85 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 9 May 2016 12:49:54 +0200 Subject: Remove unused variables This fixes warnings from clang --- common/flatpak-dir.c | 4 ---- common/flatpak-utils.c | 3 --- 2 files changed, 7 deletions(-) (limited to 'common') diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index bf737a2..4d41e04 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -681,7 +681,6 @@ flatpak_create_deploy_data_from_old (FlatpakDir *self, g_autofree char *old_origin = NULL; g_autofree char *commit = NULL; g_auto(GStrv) old_subpaths = NULL; - g_autoptr(GFile) root = NULL; g_autoptr(GFile) origin = NULL; guint64 installed_size; @@ -714,7 +713,6 @@ flatpak_dir_get_deploy_data (FlatpakDir *self, g_autoptr(GError) my_error = NULL; char *data = NULL; gsize data_size; - g_autofree char *active = NULL; deploy_dir = flatpak_dir_get_if_deployed (self, ref, NULL, cancellable); if (deploy_dir == NULL) @@ -2723,8 +2721,6 @@ flatpak_dir_deploy_update (FlatpakDir *self, GCancellable *cancellable, GError **error) { - g_autofree char *previous_deployment = NULL; - g_autoptr(GError) my_error = NULL; g_autoptr(GVariant) old_deploy_data = NULL; g_auto(GLnxLockFile) lock = GLNX_LOCK_FILE_INIT; diff --git a/common/flatpak-utils.c b/common/flatpak-utils.c index b79e276..e768e26 100644 --- a/common/flatpak-utils.c +++ b/common/flatpak-utils.c @@ -1525,10 +1525,8 @@ flatpak_summary_lookup_ref (GVariant *summary, const char *ref, char **out_check int pos; g_autoptr(GVariant) refdata = NULL; g_autoptr(GVariant) reftargetdata = NULL; - g_autoptr(GVariant) commit_data = NULL; guint64 commit_size; g_autoptr(GVariant) commit_csum_v = NULL; - g_autoptr(GBytes) commit_bytes = NULL; if (!flatpak_variant_bsearch_str (refs, ref, &pos)) return FALSE; @@ -2918,7 +2916,6 @@ flatpak_allocate_tmpdir (int tmpdir_dfd, while (tmpdir_name == NULL) { - gs_dirfd_iterator_cleanup GSDirFdIterator child_dfd_iter = { 0, }; struct dirent *dent; glnx_fd_close int existing_tmpdir_fd = -1; g_autoptr(GError) local_error = NULL; -- cgit v1.2.1