[ostree] src: Squash some unused variables
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] src: Squash some unused variables
- Date: Thu, 20 Oct 2011 20:31:24 +0000 (UTC)
commit a2880a6dddcab2012c894fe1dc1efd8ca05d55a6
Author: Colin Walters <walters verbum org>
Date: Thu Oct 20 16:30:34 2011 -0400
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, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c
index fa13909..1a9a76b 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 096953b..689285c 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 a29c1aa..ea6c121 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 4b280fb..82be89a 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]