[ostree] core: Delete some dead code
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: Delete some dead code
- Date: Thu, 8 Dec 2011 22:32:53 +0000 (UTC)
commit 7932811fbbb0a7dada345514e47ed6e317c127d9
Author: Colin Walters <walters verbum org>
Date: Thu Dec 8 14:55:41 2011 -0500
core: Delete some dead code
src/libostree/ostree-core.c | 38 --------------------------------------
1 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c
index 8bd0648..63793ce 100644
--- a/src/libostree/ostree-core.c
+++ b/src/libostree/ostree-core.c
@@ -687,44 +687,6 @@ ostree_pack_file_for_input (GOutputStream *output,
}
gboolean
-ostree_pack_file (GOutputStream *output,
- GFile *file,
- GCancellable *cancellable,
- GError **error)
-{
- gboolean ret = FALSE;
- GFileInfo *finfo = NULL;
- GInputStream *instream = NULL;
- GVariant *xattrs = NULL;
-
- finfo = g_file_query_info (file, "standard::type,standard::size,standard::is-symlink,standard::symlink-target,unix::*",
- G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable, error);
- if (!finfo)
- goto out;
-
- if (g_file_info_get_file_type (finfo) == G_FILE_TYPE_REGULAR)
- {
- instream = (GInputStream*)g_file_read (file, cancellable, error);
- if (!instream)
- goto out;
- }
-
- xattrs = ostree_get_xattrs_for_file (file, error);
- if (!xattrs)
- goto out;
-
- if (!ostree_pack_file_for_input (output, finfo, instream, xattrs, NULL, cancellable, error))
- goto out;
-
- ret = TRUE;
- out:
- g_clear_object (&finfo);
- g_clear_object (&instream);
- ot_clear_gvariant (&xattrs);
- return ret;
-}
-
-gboolean
ostree_parse_packed_file (GFile *file,
GFileInfo **out_file_info,
GVariant **out_xattrs,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]