From dfb88a7002f5360680fea0a0eaed33ad5727641a Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 29 Sep 2016 00:23:24 +0200 Subject: [PATCH] Remove unneeded objects --- include/attack_mode.h | 9 --------- include/powertune.h | 9 --------- include/remove.h | 9 --------- include/runtime.h | 9 --------- include/session.h | 13 ------------- include/version.h | 9 --------- src/Makefile | 2 +- src/attack_mode.c | 7 ------- src/data.c | 19 ------------------- src/hashcat.c | 39 ++++++--------------------------------- src/powertune.c | 7 ------- src/remove.c | 7 ------- src/runtime.c | 7 ------- src/session.c | 16 ---------------- src/version.c | 7 ------- 15 files changed, 7 insertions(+), 162 deletions(-) delete mode 100644 include/attack_mode.h delete mode 100644 include/powertune.h delete mode 100644 include/remove.h delete mode 100644 include/runtime.h delete mode 100644 include/session.h delete mode 100644 include/version.h delete mode 100644 src/attack_mode.c delete mode 100644 src/powertune.c delete mode 100644 src/remove.c delete mode 100644 src/runtime.c delete mode 100644 src/session.c delete mode 100644 src/version.c diff --git a/include/attack_mode.h b/include/attack_mode.h deleted file mode 100644 index aee9ef849..000000000 --- a/include/attack_mode.h +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#ifndef _ATTACK_MODE_H -#define _ATTACK_MODE_H - -#endif // _ATTACK_MODE_H diff --git a/include/powertune.h b/include/powertune.h deleted file mode 100644 index 2410c0d75..000000000 --- a/include/powertune.h +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#ifndef _POWERTUNE_H -#define _POWERTUNE_H - -#endif // _POWERTUNE_H diff --git a/include/remove.h b/include/remove.h deleted file mode 100644 index 854e9b2e4..000000000 --- a/include/remove.h +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#ifndef _REMOVE_H -#define _REMOVE_H - -#endif // _REMOVE_H diff --git a/include/runtime.h b/include/runtime.h deleted file mode 100644 index 3885157c5..000000000 --- a/include/runtime.h +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#ifndef _RUNTIME_H -#define _RUNTIME_H - -#endif // _RUNTIME_H diff --git a/include/session.h b/include/session.h deleted file mode 100644 index 6ee4348bf..000000000 --- a/include/session.h +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#ifndef _SESSION_H -#define _SESSION_H - -void session_ctx_init (session_ctx_t *session_ctx); - -void session_ctx_destroy (session_ctx_t *session_ctx); - -#endif // _SESSION_H diff --git a/include/version.h b/include/version.h deleted file mode 100644 index a44b89fbc..000000000 --- a/include/version.h +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#ifndef _VERSION_H -#define _VERSION_H - -#endif // _VERSION_H diff --git a/src/Makefile b/src/Makefile index 61d29411a..8694c3156 100644 --- a/src/Makefile +++ b/src/Makefile @@ -163,7 +163,7 @@ LFLAGS_CROSS_WIN := -lpsapi ## Objects ## -OBJS_ALL := affinity attack_mode autotune benchmark bitmap bitops combinator common convert cpu_aes cpu_crc32 cpu_des cpu_md5 cpu_sha1 cpu_sha256 data debugfile dictstat dispatch dynloader ext_ADL ext_nvapi ext_nvml ext_OpenCL ext_xnvctrl filehandling folder hash_management hlfmt hwmon induct interface locking logfile logging loopback memory monitor mpsp opencl outfile_check outfile potfile powertune remove restore rp rp_cpu rp_kernel_on_cpu runtime shared status stdout straight terminal thread timer tuningdb usage user_options version weak_hash wordlist +OBJS_ALL := affinity autotune benchmark bitmap bitops combinator common convert cpu_aes cpu_crc32 cpu_des cpu_md5 cpu_sha1 cpu_sha256 data debugfile dictstat dispatch dynloader ext_ADL ext_nvapi ext_nvml ext_OpenCL ext_xnvctrl filehandling folder hash_management hlfmt hwmon induct interface locking logfile logging loopback memory monitor mpsp opencl outfile_check outfile potfile restore rp rp_cpu rp_kernel_on_cpu shared status stdout straight terminal thread timer tuningdb usage user_options weak_hash wordlist NATIVE_OBJS := $(foreach OBJ,$(OBJS_ALL),obj/$(OBJ).NATIVE.o) diff --git a/src/attack_mode.c b/src/attack_mode.c deleted file mode 100644 index c9f623573..000000000 --- a/src/attack_mode.c +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#include "common.h" -#include "attack_mode.h" diff --git a/src/data.c b/src/data.c index 0fad8a4e9..ee50ee966 100644 --- a/src/data.c +++ b/src/data.c @@ -5,25 +5,6 @@ #include "common.h" #include "types.h" -#include "interface.h" -#include "timer.h" -#include "ext_OpenCL.h" -#include "ext_ADL.h" -#include "ext_nvapi.h" -#include "ext_nvml.h" -#include "ext_xnvctrl.h" -#include "mpsp.h" -#include "rp_cpu.h" -#include "tuningdb.h" -#include "thread.h" -#include "opencl.h" -#include "hwmon.h" -#include "restore.h" -#include "hash_management.h" -#include "outfile.h" -#include "potfile.h" -#include "debugfile.h" -#include "loopback.h" #include "data.h" hc_global_data_t data; diff --git a/src/hashcat.c b/src/hashcat.c index 1e0ee4583..9bd2ef6eb 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -12,43 +12,27 @@ // basic tools #include "types.h" -#include "memory.h" +#include "folder.h" +#include "locking.h" #include "logging.h" +#include "memory.h" +#include "shared.h" +#include "thread.h" +#include "timer.h" // features #include "affinity.h" -#include "attack_mode.h" #include "autotune.h" -#include "benchmark.h" #include "bitmap.h" -#include "bitops.h" #include "combinator.h" -#include "convert.h" -#include "cpu_aes.h" -#include "cpu_crc32.h" -#include "cpu_des.h" -#include "cpu_md5.h" -#include "cpu_sha1.h" -#include "cpu_sha256.h" -#include "data.h" #include "debugfile.h" #include "dictstat.h" #include "dispatch.h" -#include "ext_ADL.h" -#include "ext_nvapi.h" -#include "ext_nvml.h" -#include "ext_OpenCL.h" -#include "ext_xnvctrl.h" -#include "filehandling.h" -#include "folder.h" #include "hash_management.h" -#include "hlfmt.h" #include "hwmon.h" -#include "inc_hash_constants.h" #include "induct.h" #include "interface.h" -#include "locking.h" #include "logfile.h" #include "loopback.h" #include "monitor.h" @@ -57,25 +41,14 @@ #include "outfile_check.h" #include "outfile.h" #include "potfile.h" -#include "powertune.h" -#include "remove.h" #include "restore.h" #include "rp.h" -#include "rp_cpu.h" -#include "rp_kernel_on_cpu.h" -#include "runtime.h" -#include "session.h" -#include "shared.h" #include "status.h" -#include "stdout.h" #include "straight.h" #include "terminal.h" -#include "thread.h" -#include "timer.h" #include "tuningdb.h" #include "usage.h" #include "user_options.h" -#include "version.h" #include "weak_hash.h" #include "wordlist.h" diff --git a/src/powertune.c b/src/powertune.c deleted file mode 100644 index e77c9a29a..000000000 --- a/src/powertune.c +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#include "common.h" -#include "powertune.h" diff --git a/src/remove.c b/src/remove.c deleted file mode 100644 index 077e98fff..000000000 --- a/src/remove.c +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#include "common.h" -#include "remove.h" diff --git a/src/runtime.c b/src/runtime.c deleted file mode 100644 index dbbf0d625..000000000 --- a/src/runtime.c +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#include "common.h" -#include "runtime.h" diff --git a/src/session.c b/src/session.c deleted file mode 100644 index 7d8e8bc5c..000000000 --- a/src/session.c +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#include "common.h" -#include "types.h" -#include "session.h" - -void session_ctx_init (session_ctx_t *session_ctx) -{ -} - -void session_ctx_destroy (session_ctx_t *session_ctx) -{ -} diff --git a/src/version.c b/src/version.c deleted file mode 100644 index 939eaf343..000000000 --- a/src/version.c +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Author......: See docs/credits.txt - * License.....: MIT - */ - -#include "common.h" -#include "version.h"