diff --git a/command.c b/command.c index b35e60408d..59df0f734b 100644 --- a/command.c +++ b/command.c @@ -90,7 +90,6 @@ struct command { - bool local_enable; #ifdef HAVE_STDIN_CMD bool stdin_enable; char stdin_buf[STDIN_BUF_SIZE]; @@ -540,14 +539,12 @@ static bool command_stdin_init(command_t *handle) } #endif -command_t *command_new(bool local_enable) +command_t *command_new(void) { command_t *handle = (command_t*)calloc(1, sizeof(*handle)); if (!handle) return NULL; - handle->local_enable = local_enable; - return handle; } diff --git a/command.h b/command.h index e5001c549e..24ed1e3dc3 100644 --- a/command.h +++ b/command.h @@ -235,7 +235,7 @@ bool command_network_new( bool network_enable, uint16_t port); -command_t *command_new(bool local_enable); +command_t *command_new(void); bool command_poll(command_t *handle); diff --git a/input/input_driver.c b/input/input_driver.c index 7378d92627..8fcd5a6949 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -1183,7 +1183,7 @@ bool input_driver_init_command(void) "Cannot use this command interface.\n"); } - input_driver_command = command_new(false); + input_driver_command = command_new(); if (command_network_new( input_driver_command,