mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
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
This commit is contained in:
parent
e4caf3c3cd
commit
59fd2b1e43
@ -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;
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user