common: Remove unused xdg_app_dir_get_installed_size

tingping/wmclass
Alexander Larsson 2016-04-27 13:10:32 +02:00
parent b3b5da71c9
commit e471231414
2 changed files with 0 additions and 24 deletions

View File

@ -3983,25 +3983,6 @@ xdg_app_dir_fetch_remote_object (XdgAppDir *self,
return g_steal_pointer (&bytes);
}
gboolean
xdg_app_dir_get_installed_size (XdgAppDir *self,
const char *commit,
guint64 *installed_size,
GCancellable *cancellable,
GError **error)
{
g_autoptr(GVariant) commit_variant = NULL;
g_autoptr(GFile) root = NULL;
if (!ostree_repo_read_commit (self->repo, commit, &root, NULL, cancellable, error))
return FALSE;
if (!xdg_app_repo_collect_sizes (self->repo, root, installed_size, NULL, cancellable, error))
return FALSE;
return TRUE;
}
gboolean
xdg_app_dir_fetch_ref_cache (XdgAppDir *self,
const char *remote_name,

View File

@ -346,11 +346,6 @@ GBytes * xdg_app_dir_fetch_metadata (XdgAppDir *self,
const char *commit,
GCancellable *cancellable,
GError **error);
gboolean xdg_app_dir_get_installed_size (XdgAppDir *self,
const char *commit,
guint64 *installed_size,
GCancellable *cancellable,
GError **error);
gboolean xdg_app_dir_fetch_ref_cache (XdgAppDir *self,
const char *remote_name,
const char *ref,