Remove the unused bootloader_command_init(), CommandInterface and g_commandInterface.

This commit is contained in:
László Monda
2017-04-14 15:40:50 +02:00
parent 2cf8be92eb
commit dbcc253227
2 changed files with 0 additions and 20 deletions

View File

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

View File

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