From a2880a6dddcab2012c894fe1dc1efd8ca05d55a6 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 20 Oct 2011 16:30:34 -0400 Subject: [PATCH] src: Squash some unused variables --- src/libostree/ostree-core.c | 1 - src/libostree/ostree-repo.c | 5 ----- src/ot-builtin-checkout.c | 1 - src/ot-builtin-show.c | 1 - 4 files changed, 8 deletions(-) diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c index fa139096..1a9a76b3 100644 --- a/src/libostree/ostree-core.c +++ b/src/libostree/ostree-core.c @@ -131,7 +131,6 @@ ostree_get_xattrs_for_path (const char *path, } else if (bytes_read > 0) { - const char *p; xattr_names = g_malloc (bytes_read); if (llistxattr (path, xattr_names, bytes_read) < 0) { diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 096953b7..689285c3 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -405,7 +405,6 @@ import_directory_meta (OstreeRepo *self, GChecksum *ret_checksum = NULL; GVariant *dirmeta = NULL; GVariant *xattrs = NULL; - gsize xattr_len; if (lstat (path, &stbuf) < 0) { @@ -1318,7 +1317,6 @@ ostree_repo_commit (OstreeRepo *self, ParsedDirectoryData *root = NULL; GVariant *previous_commit = NULL; GChecksum *ret_commit_checksum = NULL; - char *orig_root_metadata_sha256 = NULL; GVariant *root_metadata = NULL; GChecksum *root_meta_checksum = NULL; @@ -1388,7 +1386,6 @@ ostree_repo_commit_from_filelist_fd (OstreeRepo *self, OstreeRepoPrivate *priv = GET_PRIVATE (self); gboolean ret = FALSE; ParsedDirectoryData *root = NULL; - GVariant *previous_commit = NULL; GChecksum *ret_commit_checksum = NULL; GUnixInputStream *in = NULL; GDataInputStream *datain = NULL; @@ -1656,8 +1653,6 @@ checkout_one_directory (OstreeRepo *self, char *dest_path = NULL; guint32 version, uid, gid, mode; GVariant *xattr_variant = NULL; - const guint8 *xattrs = NULL; - gsize xattr_len; dest_path = g_build_filename (destination, dirname, NULL); diff --git a/src/ot-builtin-checkout.c b/src/ot-builtin-checkout.c index a29c1aa3..ea6c1216 100644 --- a/src/ot-builtin-checkout.c +++ b/src/ot-builtin-checkout.c @@ -42,7 +42,6 @@ ostree_builtin_checkout (int argc, char **argv, const char *prefix, GError **err gboolean ret = FALSE; OstreeRepo *repo = NULL; OstreeCheckout *checkout = NULL; - int i; const char *commit; const char *destination; diff --git a/src/ot-builtin-show.c b/src/ot-builtin-show.c index 4b280fb8..82be89a2 100644 --- a/src/ot-builtin-show.c +++ b/src/ot-builtin-show.c @@ -39,7 +39,6 @@ ostree_builtin_show (int argc, char **argv, const char *prefix, GError **error) GOptionContext *context; gboolean ret = FALSE; OstreeRepo *repo = NULL; - int i; const char *target; OstreeSerializedVariantType type; GVariant *variant = NULL;