aboutsummaryrefslogtreecommitdiffstats
path: root/src/package.c
diff options
context:
space:
mode:
authorJason Woodward2010-01-11 11:58:44 -0500
committerJason Woodward2010-01-11 11:58:44 -0500
commit520a9e5a99af1bdd3a57626fdcb6530853c7a765 (patch)
treedc288c53ad136696fc4b1bf79e16aebd0a7ab189 /src/package.c
parentc7fed4dd2277bdb58ac17e85d664f9eee6ff0519 (diff)
downloadslapt-get-520a9e5a99af1bdd3a57626fdcb6530853c7a765.tar.gz
removed unused location_regex from slapt_get_installed_pkgs()0.10.2c
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/package.c b/src/package.c
index e2ee2ee..708dcdd 100644
--- a/src/package.c
+++ b/src/package.c
@@ -477,8 +477,7 @@ struct slapt_pkg_list *slapt_get_installed_pkgs(void)
struct dirent *file;
slapt_regex_t *ip_regex = NULL,
*compressed_size_reg = NULL,
- *uncompressed_size_reg = NULL,
- *location_regex = NULL;
+ *uncompressed_size_reg = NULL;
struct slapt_pkg_list *list = NULL;
size_t pls = 1;
@@ -493,9 +492,6 @@ struct slapt_pkg_list *slapt_get_installed_pkgs(void)
if ((uncompressed_size_reg = slapt_init_regex(SLAPT_PKG_LOG_SIZEU_PATTERN)) == NULL) {
exit(EXIT_FAILURE);
}
- if ((location_regex = slapt_init_regex(SLAPT_PKG_LOCATION_PATTERN)) == NULL) {
- exit(EXIT_FAILURE);
- }
pkg_log_dirname = slapt_gen_package_log_dir_name();
@@ -680,7 +676,6 @@ struct slapt_pkg_list *slapt_get_installed_pkgs(void)
free(pkg_log_dirname);
slapt_free_regex(compressed_size_reg);
slapt_free_regex(uncompressed_size_reg);
- slapt_free_regex(location_regex);
list->free_pkgs = SLAPT_TRUE;