remove unused variables and functions
This commit is contained in:
@ -121,7 +121,6 @@ void wm_configfile_init(ConfigFile *config, const char *filename)
|
||||
assert(filename);
|
||||
|
||||
strncpy(config->file_path, filename, PATH_MAX);
|
||||
const size_t size = CONFIG_ARGC_MAX*CONFIG_ARGLEN_MAX;
|
||||
|
||||
ConfigCommand commands[] = {
|
||||
(ConfigCommand) {.string = "border_color", .arg_count = 1,
|
||||
@ -176,7 +175,6 @@ void wm_configfile_read(ConfigFile *cfile, Config *config)
|
||||
|
||||
const int max_line_len = 8192;
|
||||
char line[max_line_len];
|
||||
char argv[CONFIG_ARGC_MAX][CONFIG_ARGLEN_MAX];
|
||||
size_t line_index = 0;
|
||||
ConfigCommand command = {0};
|
||||
wm_configcommand_init(&command);
|
||||
@ -201,8 +199,6 @@ void wm_configfile_read(ConfigFile *cfile, Config *config)
|
||||
|
||||
void wm_config_apply_command(Config *config, ConfigCommand *command)
|
||||
{
|
||||
void *arg = NULL;
|
||||
|
||||
switch (command->arg_type) {
|
||||
case TYPE_INTEGER:
|
||||
for (size_t i = 0; i < command->argc; i++) {
|
||||
|
Reference in New Issue
Block a user