diff --git a/include/induct.h b/include/induct.h index fd296f4a8..b121d70dd 100644 --- a/include/induct.h +++ b/include/induct.h @@ -14,7 +14,6 @@ static const char INDUCT_DIR[] = "induct"; int induct_ctx_init (hashcat_ctx_t *hashcat_ctx); void induct_ctx_scan (hashcat_ctx_t *hashcat_ctx); -void induct_ctx_cleanup (hashcat_ctx_t *hashcat_ctx); void induct_ctx_destroy (hashcat_ctx_t *hashcat_ctx); #endif // _INDUCT_H diff --git a/src/induct.c b/src/induct.c index 5e99b552d..1bee34110 100644 --- a/src/induct.c +++ b/src/induct.c @@ -108,23 +108,6 @@ void induct_ctx_scan (hashcat_ctx_t *hashcat_ctx) qsort (induct_ctx->induction_dictionaries, (size_t) induct_ctx->induction_dictionaries_cnt, sizeof (char *), sort_by_mtime); } -void induct_ctx_cleanup (hashcat_ctx_t *hashcat_ctx) -{ - induct_ctx_t *induct_ctx = hashcat_ctx->induct_ctx; - - if (induct_ctx->enabled == false) return; - - for (int file_pos = 0; file_pos < induct_ctx->induction_dictionaries_cnt; file_pos++) - { - hc_stat_t induct_stat; - - if (hc_stat (induct_ctx->induction_dictionaries[file_pos], &induct_stat) == 0) - { - unlink (induct_ctx->induction_dictionaries[file_pos]); - } - } -} - void induct_ctx_destroy (hashcat_ctx_t *hashcat_ctx) { induct_ctx_t *induct_ctx = hashcat_ctx->induct_ctx;