diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-04-27 09:29:48 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-04-27 09:29:48 +0200 |
commit | a304b786f47ade0cf8886569fad3c6742059afb3 (patch) | |
tree | acce9ebc1480f85904fe8c5db448eaf2458ada33 /common | |
parent | 965530c1439e1d6ff0d7fef689cb245678fb9e20 (diff) | |
download | xdg-app-a304b786f47ade0cf8886569fad3c6742059afb3.tar.gz |
installation_fetch_remote_size_sync: Always fail with deprecation error
This is not supported anymore since it was replaced with the summary cache.
Remove the code so nothing accidentally uses it.
Diffstat (limited to 'common')
-rw-r--r-- | common/xdg-app-dir.c | 47 | ||||
-rw-r--r-- | common/xdg-app-dir.h | 9 |
2 files changed, 0 insertions, 56 deletions
diff --git a/common/xdg-app-dir.c b/common/xdg-app-dir.c index 77ad21c..c21a9ac 100644 --- a/common/xdg-app-dir.c +++ b/common/xdg-app-dir.c @@ -4033,53 +4033,6 @@ xdg_app_dir_get_installed_size (XdgAppDir *self, error); } -/** xdg_app_dir_fetch_sizes - * @self: a #XdgAppDir - * @new_archived: total size of new (to be downloaded) objects in compressed form - * @new_unpacked: total size of new (to be downloaded) objects in uncompressed form - * @total_archived: total size of all objects in compressed form - * @total_unpacked: total size of all objects in uncompressed form - */ -gboolean -xdg_app_dir_fetch_sizes (XdgAppDir *self, - const char *remote_name, - const char *commit, - guint64 *new_archived, - guint64 *new_unpacked, - guint64 *total_archived, - guint64 *total_unpacked, - GCancellable *cancellable, - GError **error) -{ - g_autoptr(GBytes) commit_bytes = NULL; - g_autoptr(GVariant) commit_variant = NULL; - - if (!xdg_app_dir_ensure_repo (self, cancellable, error)) - return FALSE; - - commit_bytes = xdg_app_dir_fetch_remote_object (self, remote_name, - commit, "commit", - cancellable, error); - if (commit_bytes == NULL) - return FALSE; - - commit_variant = g_variant_new_from_bytes (OSTREE_COMMIT_GVARIANT_FORMAT, - commit_bytes, FALSE); - - - if (!ostree_validate_structureof_commit (commit_variant, error)) - return FALSE; - - return calc_sizes (self, - commit_variant, - new_archived, - new_unpacked, - total_archived, - total_unpacked, - cancellable, - error); -} - gboolean xdg_app_dir_fetch_ref_cache (XdgAppDir *self, const char *remote_name, diff --git a/common/xdg-app-dir.h b/common/xdg-app-dir.h index 2ca8f31..c1945cd 100644 --- a/common/xdg-app-dir.h +++ b/common/xdg-app-dir.h @@ -338,15 +338,6 @@ gboolean xdg_app_dir_get_installed_size (XdgAppDir *self, guint64 *installed_size, GCancellable *cancellable, GError **error); -gboolean xdg_app_dir_fetch_sizes (XdgAppDir *self, - const char *remote_name, - const char *commit, - guint64 *new_archived, - guint64 *new_unpacked, - guint64 *total_archived, - guint64 *total_unpacked, - GCancellable *cancellable, - GError **error); gboolean xdg_app_dir_fetch_ref_cache (XdgAppDir *self, const char *remote_name, const char *ref, |