ls-remote: Remove unnecessary code

Summary refs never have a remote prefix
tingping/wmclass
Alexander Larsson 2015-12-03 21:45:46 +01:00
parent e76da99cdc
commit f2c9663169
1 changed files with 1 additions and 9 deletions

View File

@ -82,19 +82,11 @@ xdg_app_builtin_ls_remote (int argc, char **argv, GCancellable *cancellable, GEr
g_hash_table_iter_init (&iter, refs);
while (g_hash_table_iter_next (&iter, &key, &value))
{
const char *refspec = key;
const char *ref = key;
const char *checksum = value;
g_autofree char *remote = NULL;
g_autofree char *ref = NULL;
char *name = NULL;
char *p;
if (!ostree_parse_refspec (refspec, &remote, &ref, error))
return FALSE;
if (remote != NULL && !g_str_equal (remote, repository))
continue;
if (opt_only_updates)
{
g_autofree char *deployed = NULL;