compose: Remove unused helper functions

No longer needed.
This commit is contained in:
Colin Walters 2021-04-11 14:06:29 -04:00
parent c792587645
commit 29b63cf270
2 changed files with 0 additions and 34 deletions

View File

@ -166,26 +166,6 @@ treespec_bind_array (JsonObject *treedata,
return set_keyfile_string_array_from_json (ts, "tree", dest_name ?: src_name, a, error);
}
/* Given a boolean value in JSON, add it to treespec
* if it's not the default.
*/
static gboolean
treespec_bind_bool (JsonObject *treedata,
GKeyFile *ts,
const char *name,
gboolean default_value,
GError **error)
{
gboolean v = default_value;
if (!_rpmostree_jsonutil_object_get_optional_boolean_member (treedata, name, &v, error))
return FALSE;
if (v != default_value)
g_key_file_set_boolean (ts, "tree", name, v);
return TRUE;
}
/* Convert a treefile into a "treespec" understood by the core.
*/
RpmOstreeTreespec *

View File

@ -217,20 +217,6 @@ add_canonicalized_string_array (GVariantBuilder *builder,
g_variant_new_strv ((const char*const*)sorted, count));
}
/* Get a bool from @keyfile, adding it to @builder */
static void
tf_bind_boolean (GKeyFile *keyfile,
GVariantBuilder *builder,
const char *name,
gboolean default_value)
{
gboolean v = default_value;
if (g_key_file_has_key (keyfile, "tree", name, NULL))
v = g_key_file_get_boolean (keyfile, "tree", name, NULL);
g_variant_builder_add (builder, "{sv}", name, g_variant_new_boolean (v));
}
RpmOstreeTreespec *
rpmostree_treespec_new_from_keyfile (GKeyFile *keyfile,
GError **error)