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:
Ondrej Kozina
2021-02-04 18:30:29 +01:00
parent 89839cb1cf
commit 1862a991d8
2 changed files with 0 additions and 13 deletions

View File

@@ -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)

View File

@@ -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