From dbcc253227ee7af9c1e986438753161ce0408de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 14 Apr 2017 15:40:50 +0200 Subject: [PATCH] Remove the unused bootloader_command_init(), CommandInterface and g_commandInterface. --- right/src/buspal/command.c | 9 --------- right/src/buspal/command.h | 11 ----------- 2 files changed, 20 deletions(-) diff --git a/right/src/buspal/command.c b/right/src/buspal/command.c index d732bac..297e9ce 100644 --- a/right/src/buspal/command.c +++ b/right/src/buspal/command.c @@ -363,15 +363,6 @@ static status_t handle_data_write(bool *hasMoreData) return kStatus_Success; } -// See command.h for documentation on this function. -status_t bootloader_command_init() -{ - command_processor_data_t *data = g_commandInterface.stateData; - - data->state = kCommandState_CommandPhase; - return kStatus_Success; -} - // See command.h for documentation on this function. status_t bootloader_command_pump() { diff --git a/right/src/buspal/command.h b/right/src/buspal/command.h index 5417b83..e70dbc3 100644 --- a/right/src/buspal/command.h +++ b/right/src/buspal/command.h @@ -38,19 +38,8 @@ typedef struct CommandProcessorData { const command_handler_entry_t *handlerEntry; // Pointer to handler table entry for packet in process } command_processor_data_t; -// Interface to command processor operations. -typedef struct CommandInterface { - command_processor_data_t *stateData; -} command_interface_t; - -// Default command interface. -extern command_interface_t g_commandInterface; - void handleUsbBusPalCommand(); -// Initialize the command processor component. -status_t bootloader_command_init(void); - // Pump the command state machine. Executes one command or data phase transaction. status_t bootloader_command_pump(void);