mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 03:10:08 +01:00
Remove useless code.
The routine was originaly used in code for resetting default argument values. It was used in cli plugins related code where we needed to parse command line arguments twice.
This commit is contained in:
@@ -52,8 +52,6 @@ void tools_cleanup(void)
|
||||
free(keyfiles[--keyfiles_count]);
|
||||
|
||||
total_keyfiles = 0;
|
||||
|
||||
args_reset_default_values(tool_core_args);
|
||||
}
|
||||
|
||||
static const char *uuid_or_device_header(const char **data_device)
|
||||
|
||||
@@ -93,15 +93,4 @@ static struct tools_arg tool_core_args[] = { { NULL, false, CRYPT_ARG_BOOL }, /*
|
||||
#undef ARG
|
||||
};
|
||||
|
||||
static inline void args_reset_default_values(struct tools_arg *args)
|
||||
{
|
||||
static const struct tools_arg tmp[] = { { NULL, false, CRYPT_ARG_BOOL }, // UNUSED
|
||||
#define ARG(A, B, C, D, E, F, G, H ) { A, false, F, G, H },
|
||||
#include "cryptsetup_arg_list.h"
|
||||
#undef ARG
|
||||
};
|
||||
|
||||
memcpy(args, tmp, sizeof(tmp));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user