repo: Drop ostree_repo_load_variant_c API
Originally we had this to avoid forcing callers to malloc() if they had a csum, but nowadays we have in-place conversion APIs that are fast enough.
This commit is contained in:
1 parent
dd7d2f7b43
commit
356de33b49
4 files changed
+12
-45
No files matched your search
@@ -2584,37 +2584,6 @@ ostree_repo_query_object_storage_size (OstreeRepo *self,
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* ostree_repo_load_variant_c:
|
||||
* @self: Repo
|
||||
* @objtype: Expected object type
|
||||
* @csum: Binary checksum
|
||||
* @out_variant: (out): (transfer full): Metadata object
|
||||
* @error: Error
|
||||
*
|
||||
* Load the metadata object @csum of type @objtype, storing the
|
||||
* result in @out_variant.
|
||||
*/
|
||||
gboolean
|
||||
ostree_repo_load_variant_c (OstreeRepo *self,
|
||||
OstreeObjectType objtype,
|
||||
const guchar *csum,
|
||||
GVariant **out_variant,
|
||||
GError **error)
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
gs_free char *checksum = NULL;
|
||||
|
||||
checksum = ostree_checksum_from_bytes (csum);
|
||||
|
||||
if (!ostree_repo_load_variant (self, objtype, checksum, out_variant, error))
|
||||
goto out;
|
||||
|
||||
ret = TRUE;
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* ostree_repo_load_variant_if_exists:
|
||||
* @self: Repo
|
||||
|
||||
Reference in new issue
Block a user