]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak remove unused variables
authorKern Sibbald <kern@sibbald.com>
Sat, 26 Jul 2014 08:55:15 +0000 (10:55 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 26 Jul 2014 08:55:15 +0000 (10:55 +0200)
bacula/src/dird/restore.c
bacula/src/dird/ua_restore.c

index b61c7297144fd3374020cde3d7ffddd5ec8d99ff..99bffc6706e866a4d63bdd46e6c909a57b2c62e8 100644 (file)
@@ -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;
index 1dc1a4046083c947aabd6f83710b9039e5eba6b6..4a629d97dd20c88b5228dd9519ead9a14b3406b1 100644 (file)
@@ -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;