From e438aae13c3ed1c08f6282f41d022ddd9fd5eb8b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 14 Jan 2015 21:00:37 +0100 Subject: [PATCH] transaction_revdeps.c: remove dead code. --- lib/transaction_revdeps.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/transaction_revdeps.c b/lib/transaction_revdeps.c index 14a5df5c..7883c725 100644 --- a/lib/transaction_revdeps.c +++ b/lib/transaction_revdeps.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2013-2014 Juan Romero Pardines. + * Copyright (c) 2013-2015 Juan Romero Pardines. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -53,17 +53,12 @@ check_virtual_pkgs(struct xbps_handle *xhp, for (unsigned int i = 0; i < xbps_array_count(provides); i++) { xbps_array_t rundeps, mdeps; const char *pkgver, *revpkgver, *pkgpattern; - char *tmp, *pkgname, *pkgdepname, *vpkgname, *vpkgver, *str; + char *pkgname, *pkgdepname, *vpkgname, *vpkgver, *str; pkgver = revpkgver = pkgpattern = NULL; - tmp = pkgname = pkgdepname = vpkgname = vpkgver = str = NULL; + pkgname = pkgdepname = vpkgname = vpkgver = str = NULL; xbps_array_get_cstring(provides, i, &vpkgver); - if (strchr(vpkgver, '_') == NULL) { - tmp = xbps_xasprintf("%s_1", vpkgver); - free(vpkgver); - vpkgver = strdup(tmp); - } vpkgname = xbps_pkg_name(vpkgver); assert(vpkgname); rundeps = xbps_dictionary_get(rev_pkgd, "run_depends");