[ostree] repo: Drop internal GFile* API helper
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] repo: Drop internal GFile* API helper
- Date: Tue, 3 Mar 2015 16:52:13 +0000 (UTC)
commit 6e0d92db00a049aff01c35c61333981a99259cd6
Author: Colin Walters <walters verbum org>
Date: Tue Mar 3 08:19:20 2015 -0500
repo: Drop internal GFile* API helper
There are no users anymore.
src/libostree/ostree-repo-commit.c | 18 ------------------
src/libostree/ostree-repo-private.h | 5 -----
2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c
index 941b08f..4cab2f4 100644
--- a/src/libostree/ostree-repo-commit.c
+++ b/src/libostree/ostree-repo-commit.c
@@ -1618,24 +1618,6 @@ _ostree_repo_write_directory_meta (OstreeRepo *self,
dirmeta, out_csum, cancellable, error);
}
-GFile *
-_ostree_repo_get_object_path (OstreeRepo *self,
- const char *checksum,
- OstreeObjectType type)
-{
- char *relpath;
- GFile *ret;
- gboolean compressed;
-
- compressed = (type == OSTREE_OBJECT_TYPE_FILE
- && ostree_repo_get_mode (self) == OSTREE_REPO_MODE_ARCHIVE_Z2);
- relpath = _ostree_get_relative_object_path (checksum, type, compressed);
- ret = g_file_resolve_relative_path (self->repodir, relpath);
- g_free (relpath);
-
- return ret;
-}
-
/**
* ostree_repo_write_content_trusted:
* @self: Repo
diff --git a/src/libostree/ostree-repo-private.h b/src/libostree/ostree-repo-private.h
index c4db502..a96d9d6 100644
--- a/src/libostree/ostree-repo-private.h
+++ b/src/libostree/ostree-repo-private.h
@@ -118,11 +118,6 @@ _ostree_repo_get_loose_object_dirs (OstreeRepo *self,
GCancellable *cancellable,
GError **error);
-GFile *
-_ostree_repo_get_object_path (OstreeRepo *self,
- const char *checksum,
- OstreeObjectType type);
-
gboolean
_ostree_repo_write_directory_meta (OstreeRepo *self,
GFileInfo *file_info,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]