From 733babe7cb2621809fb57929b6eb5da8353a7cb9 Mon Sep 17 00:00:00 2001 From: Howard Johnson Date: Tue, 4 Jun 2019 22:39:00 +0100 Subject: [PATCH] Remove unused target variable from rpmspec.c Commit d2f48e93d32e222d4727b9684d2032f9bb9fc498 moved the --target argument to be global, but didn't completely remove the local target variable from rpmspec.c, or the code that used it to trigger re-loading the rpm configuration files (which is now handled by the global argument callback in poptALL.c). --- rpmspec.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rpmspec.c b/rpmspec.c index 86e3285ad..4e619247e 100644 --- a/rpmspec.c +++ b/rpmspec.c @@ -17,7 +17,6 @@ enum modes { static int mode = MODE_UNKNOWN; static int source = RPMQV_SPECRPMS; -const char *target = NULL; char *queryformat = NULL; static struct poptOption specOptsTable[] = { @@ -65,12 +64,6 @@ int main(int argc, char *argv[]) if (rpmcliPipeOutput && initPipe()) exit(EXIT_FAILURE); - - if (target) { - rpmFreeMacros(NULL); - rpmFreeRpmrc(); - rpmReadConfigFiles(rpmcliRcfile, target); - } ts = rpmtsCreate(); switch (mode) {