From 130649bad9a9ab3ed9e61b9239be88396dfa902d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 24 Jan 2013 09:37:58 +0100 Subject: [PATCH] xbps-query/list.c: remove obsolete code. --- bin/xbps-query/list.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/xbps-query/list.c b/bin/xbps-query/list.c index f186ca22..7f27c2c0 100644 --- a/bin/xbps-query/list.c +++ b/bin/xbps-query/list.c @@ -56,19 +56,14 @@ list_pkgs_in_dict(struct xbps_handle *xhp, bool *loop_done) { struct list_pkgver_cb *lpc = arg; - const char *pkgver, *short_desc, *arch, *state_str; + const char *pkgver, *short_desc, *state_str; char tmp[255], *out = NULL; size_t i, len = 0, maxcols; - bool chkarch; pkg_state_t state; (void)xhp; (void)loop_done; - chkarch = prop_dictionary_get_cstring_nocopy(obj, "architecture", &arch); - if (chkarch && !xbps_pkg_arch_match(xhp, arch, NULL)) - return 0; - prop_dictionary_get_cstring_nocopy(obj, "pkgver", &pkgver); prop_dictionary_get_cstring_nocopy(obj, "short_desc", &short_desc); if (!pkgver && !short_desc)