[ostree] repo: Remove unused remote-cache dir



commit 59fd2b1e436ad89d290ae2b314810877cff5ecf0
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Nov 6 13:05:01 2014 -0500

    repo: Remove unused remote-cache dir
    
    Unused leftover from when ostree had pack files; minor cleanup.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=739746

 src/libostree/ostree-repo-private.h |    1 -
 src/libostree/ostree-repo.c         |    5 -----
 2 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/libostree/ostree-repo-private.h b/src/libostree/ostree-repo-private.h
index e893c4f..cce24f5 100644
--- a/src/libostree/ostree-repo-private.h
+++ b/src/libostree/ostree-repo-private.h
@@ -45,7 +45,6 @@ struct OstreeRepo {
   GFile *deltas_dir;
   GFile *uncompressed_objects_dir;
   int uncompressed_objects_dir_fd;
-  GFile *remote_cache_dir;
   GFile *config_file;
 
   GFile *transaction_lock_path;
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index 948d08d..2ae893f 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -104,7 +104,6 @@ ostree_repo_finalize (GObject *object)
   g_clear_object (&self->uncompressed_objects_dir);
   if (self->uncompressed_objects_dir_fd != -1)
     (void) close (self->uncompressed_objects_dir_fd);
-  g_clear_object (&self->remote_cache_dir);
   g_clear_object (&self->config_file);
 
   g_clear_object (&self->transaction_lock_path);
@@ -179,7 +178,6 @@ ostree_repo_constructed (GObject *object)
   self->deltas_dir = g_file_get_child (self->repodir, "deltas");
   self->uncompressed_objects_dir = g_file_get_child (self->repodir, "uncompressed-objects-cache");
   self->state_dir = g_file_get_child (self->repodir, "state");
-  self->remote_cache_dir = g_file_get_child (self->repodir, "remote-cache");
   self->config_file = g_file_get_child (self->repodir, "config");
 
   G_OBJECT_CLASS (ostree_repo_parent_class)->constructed (object);
@@ -649,9 +647,6 @@ ostree_repo_create (OstreeRepo     *self,
   if (!g_file_make_directory (self->tmp_dir, cancellable, error))
     goto out;
 
-  if (!g_file_make_directory (self->remote_cache_dir, cancellable, error))
-    goto out;
-
   g_clear_object (&child);
   child = g_file_get_child (self->repodir, "refs");
   if (!g_file_make_directory (child, cancellable, error))


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