[ostree/wip/ostbuild-v2] core: local-clone: Delete leftover code assuming file objects are loose



commit 08bef83a79989a78e1d6f5600504f3f26f235c03
Author: Colin Walters <walters verbum org>
Date:   Wed Apr 25 08:47:43 2012 -0400

    core: local-clone: Delete leftover code assuming file objects are loose

 src/ostree/ot-builtin-local-clone.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/ostree/ot-builtin-local-clone.c b/src/ostree/ot-builtin-local-clone.c
index ee1e66d..26152cb 100644
--- a/src/ostree/ot-builtin-local-clone.c
+++ b/src/ostree/ot-builtin-local-clone.c
@@ -101,7 +101,6 @@ import_one_object (OtLocalCloneData *data,
                    GError        **error)
 {
   gboolean ret = FALSE;
-  ot_lobj GFile *objfile = NULL;
   ot_lobj GFileInfo *file_info = NULL;
   ot_lobj GFile *content_path = NULL;
   ot_lobj GFileInfo *archive_info = NULL;
@@ -109,13 +108,6 @@ import_one_object (OtLocalCloneData *data,
   ot_lvariant GVariant *xattrs = NULL;
   ot_lobj GInputStream *input = NULL;
 
-  objfile = ostree_repo_get_object_path (data->src_repo, checksum, objtype);
-  file_info = g_file_query_info (objfile, OSTREE_GIO_FAST_QUERYINFO,
-                                 G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, error);
-
-  if (file_info == NULL)
-    goto out;
-
   if (objtype == OSTREE_OBJECT_TYPE_FILE)
     {
       if (!ostree_repo_load_file (data->src_repo, checksum,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]