From a3f0c0e01d401a65d4d8f71d07fbbcfab5cf8b5f Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 26 Jul 2014 10:55:15 +0200 Subject: [PATCH] Tweak remove unused variables --- bacula/src/dird/restore.c | 9 --------- bacula/src/dird/ua_restore.c | 3 --- 2 files changed, 12 deletions(-) diff --git a/bacula/src/dird/restore.c b/bacula/src/dird/restore.c index b61c729714..99bffc6706 100644 --- a/bacula/src/dird/restore.c +++ b/bacula/src/dird/restore.c @@ -569,15 +569,6 @@ void restore_cleanup(JCR *jcr, int TermCode) Dmsg0(20, "In restore_cleanup\n"); update_job_end(jcr, TermCode); - if (jcr->component_fd) { - fclose(jcr->component_fd); - jcr->component_fd = NULL; - } - if (jcr->component_fname && *jcr->component_fname) { - unlink(jcr->component_fname); - } - free_and_null_pool_memory(jcr->component_fname); - if (jcr->unlink_bsr && jcr->RestoreBootstrap) { unlink(jcr->RestoreBootstrap); jcr->unlink_bsr = false; diff --git a/bacula/src/dird/ua_restore.c b/bacula/src/dird/ua_restore.c index 1dc1a40460..4a629d97dd 100644 --- a/bacula/src/dird/ua_restore.c +++ b/bacula/src/dird/ua_restore.c @@ -83,9 +83,6 @@ int restore_cmd(UAContext *ua, const char *cmd) rx.JobIds = get_pool_memory(PM_FNAME); rx.JobIds[0] = 0; - rx.component_fname = get_pool_memory(PM_FNAME); - rx.component_fname[0] = 0; - rx.BaseJobIds = get_pool_memory(PM_FNAME); rx.BaseJobIds[0] = 0; -- 2.39.5