diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-04-30 09:59:02 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-04-30 09:59:02 -0400 |
commit | a6e67c3827b6c723d57b9252b5679ca0d48cc17b (patch) | |
tree | 8325f7393ae3aedad16dc42d80dc6e8a09d1f56c | |
parent | 1cef52795c44bb41db5afa220f423993478d8d83 (diff) | |
download | expac-a6e67c3827b6c723d57b9252b5679ca0d48cc17b.tar.xz |
remove unneeded helper function
-rw-r--r-- | expac.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -145,17 +145,6 @@ static char *format_optdep(alpm_depend_t *optdep) { return out; } -static char *trim_optdep(alpm_depend_t *optdep) { - char *colon; - - colon = strchr(optdep->name, ':'); - if (colon) { - *colon = '\0'; - } - - return optdep->name; -} - static alpm_handle_t *alpm_init(void) { alpm_handle_t *handle = NULL; enum _alpm_errno_t alpm_errno = 0; @@ -578,7 +567,7 @@ static int print_pkg(alpm_pkg_t *pkg, const char *format) { out += print_list(alpm_pkg_get_optdepends(pkg), (extractfn)format_optdep, shortdeps); break; case 'o': /* optdepends (shortdeps) */ - out += print_list(alpm_pkg_get_optdepends(pkg), (extractfn)trim_optdep, shortdeps); + out += print_list(alpm_pkg_get_optdepends(pkg), (extractfn)alpm_dep_get_name, shortdeps); break; case 'C': /* conflicts */ out += print_list(alpm_pkg_get_conflicts(pkg), (extractfn)alpm_dep_get_name, shortdeps); |