main: delete duplicate GPG sig printing function

We already have a `rpmostree_print_signatures` function that the
`status` command uses to print GPG signatures.

Closes: #803
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2017-05-29 10:50:27 -04:00 committed by Atomic Bot
parent e852bf33d6
commit fa62981693
2 changed files with 0 additions and 27 deletions

View File

@ -202,32 +202,6 @@ rpmostree_option_context_parse (GOptionContext *context,
return TRUE;
}
void
rpmostree_print_gpg_verify_result (OstreeGpgVerifyResult *result)
{
GString *buffer;
guint n_sigs, ii;
n_sigs = ostree_gpg_verify_result_count_all (result);
/* XXX If we ever add internationalization, use ngettext() here. */
g_print ("GPG: Verification enabled, found %u signature%s:\n",
n_sigs, n_sigs == 1 ? "" : "s");
buffer = g_string_sized_new (256);
for (ii = 0; ii < n_sigs; ii++)
{
g_string_append_c (buffer, '\n');
ostree_gpg_verify_result_describe (result, ii, buffer, " ",
OSTREE_GPG_SIGNATURE_FORMAT_DEFAULT);
}
g_print ("%s\n", buffer->str);
g_string_free (buffer, TRUE);
}
static RpmOstreeCommand *
lookup_command (const char *name)
{

View File

@ -94,7 +94,6 @@ rpmostree_option_context_parse (GOptionContext *context,
GPid *out_peer_pid,
GError **error);
void rpmostree_print_gpg_verify_result (OstreeGpgVerifyResult *result);
G_END_DECLS