mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
libotutil: Remove ot_variant_new_from_bytes()
Not needed anymore - use g_variant_new_from_bytes().
This commit is contained in:
parent
85933c7cca
commit
b05d670031
@ -1316,9 +1316,9 @@ fetch_metadata_to_verify_delta_superblock (OtPullData *pull_data,
|
||||
cancellable, error))
|
||||
goto out;
|
||||
|
||||
metadata = ot_variant_new_from_bytes (G_VARIANT_TYPE ("a{sv}"),
|
||||
detached_meta_data,
|
||||
FALSE);
|
||||
metadata = g_variant_new_from_bytes (G_VARIANT_TYPE ("a{sv}"),
|
||||
detached_meta_data,
|
||||
FALSE);
|
||||
|
||||
if (!_ostree_repo_gpg_verify_file_with_metadata (pull_data->repo, temp_input_path,
|
||||
metadata, NULL, NULL,
|
||||
@ -1366,8 +1366,8 @@ request_static_delta_superblock_sync (OtPullData *pull_data,
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret_delta_superblock = ot_variant_new_from_bytes ((GVariantType*)OSTREE_STATIC_DELTA_SUPERBLOCK_FORMAT,
|
||||
delta_superblock_data, FALSE);
|
||||
ret_delta_superblock = g_variant_new_from_bytes ((GVariantType*)OSTREE_STATIC_DELTA_SUPERBLOCK_FORMAT,
|
||||
delta_superblock_data, FALSE);
|
||||
}
|
||||
|
||||
ret = TRUE;
|
||||
|
@ -350,8 +350,8 @@ _ostree_static_delta_part_execute (OstreeRepo *repo,
|
||||
goto out;
|
||||
}
|
||||
|
||||
payload = ot_variant_new_from_bytes (G_VARIANT_TYPE (OSTREE_STATIC_DELTA_PART_PAYLOAD_FORMAT_V0),
|
||||
payload_data, FALSE);
|
||||
payload = g_variant_new_from_bytes (G_VARIANT_TYPE (OSTREE_STATIC_DELTA_PART_PAYLOAD_FORMAT_V0),
|
||||
payload_data, FALSE);
|
||||
if (!_ostree_static_delta_part_execute_raw (repo, header, payload,
|
||||
cancellable, error))
|
||||
goto out;
|
||||
|
@ -275,14 +275,6 @@ ot_util_variant_builder_from_variant (GVariant *variant,
|
||||
return builder;
|
||||
}
|
||||
|
||||
GVariant *
|
||||
ot_variant_new_from_bytes (const GVariantType *type,
|
||||
GBytes *bytes,
|
||||
gboolean trusted)
|
||||
{
|
||||
return g_variant_new_from_bytes (type, bytes, trusted);
|
||||
}
|
||||
|
||||
/**
|
||||
* ot_variant_bsearch_str:
|
||||
* @array: A GVariant array whose first element must be a string
|
||||
|
@ -67,11 +67,6 @@ GInputStream *ot_variant_read (GVariant *variant);
|
||||
GVariantBuilder *ot_util_variant_builder_from_variant (GVariant *variant,
|
||||
const GVariantType *type);
|
||||
|
||||
GVariant *
|
||||
ot_variant_new_from_bytes (const GVariantType *type,
|
||||
GBytes *bytes,
|
||||
gboolean trusted);
|
||||
|
||||
gboolean
|
||||
ot_variant_bsearch_str (GVariant *array,
|
||||
const char *str,
|
||||
|
Loading…
x
Reference in New Issue
Block a user