summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-05-09 12:49:54 +0200
committerAlexander Larsson <alexl@redhat.com>2016-05-09 12:49:54 +0200
commit4f9ea6bb5715c69c560e8ca599c0dc4f2977bf85 (patch)
tree19175471aa4a52d561a7f04105bd7f9c9939464a /common
parent5e9b247d260ff4e2b9a9620053e61e8a0161cdee (diff)
downloadxdg-app-4f9ea6bb5715c69c560e8ca599c0dc4f2977bf85.tar.gz
Remove unused variables
This fixes warnings from clang
Diffstat (limited to 'common')
-rw-r--r--common/flatpak-dir.c4
-rw-r--r--common/flatpak-utils.c3
2 files changed, 0 insertions, 7 deletions
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;