drivers/kitprog: remove unused JTAG execute_queue method 99/4899/8
authorAntonio Borneo <borneo.antonio@gmail.com>
Tue, 22 Jan 2019 00:31:42 +0000 (01:31 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Tue, 14 Jan 2020 11:39:25 +0000 (11:39 +0000)
kitprog is SWD only and we do not rely on JTAG queue anymore.
Remove the remaining JTAG heritage.

Change-Id: Ic586278368301eb669bc6e4e641f683a81cb171d
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/4899
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/jtag/drivers/kitprog.c

index dcca8a0..a08f036 100644 (file)
@@ -844,35 +844,6 @@ static int kitprog_reset(int trst, int srst)
        return retval;
 }
 
-static void kitprog_execute_sleep(struct jtag_command *cmd)
-{
-       jtag_sleep(cmd->cmd.sleep->us);
-}
-
-static void kitprog_execute_command(struct jtag_command *cmd)
-{
-       switch (cmd->type) {
-               case JTAG_SLEEP:
-                       kitprog_execute_sleep(cmd);
-                       break;
-               default:
-                       LOG_ERROR("BUG: unknown JTAG command type encountered");
-                       exit(-1);
-       }
-}
-
-static int kitprog_execute_queue(void)
-{
-       struct jtag_command *cmd = jtag_command_queue;
-
-       while (cmd != NULL) {
-               kitprog_execute_command(cmd);
-               cmd = cmd->next;
-       }
-
-       return ERROR_OK;
-}
-
 COMMAND_HANDLER(kitprog_handle_info_command)
 {
        int retval = kitprog_get_info();
@@ -969,7 +940,6 @@ struct jtag_interface kitprog_interface = {
        .commands = kitprog_command_handlers,
        .transports = kitprog_transports,
        .swd = &kitprog_swd,
-       .execute_queue = kitprog_execute_queue,
        .init = kitprog_init,
        .quit = kitprog_quit,
        .reset = kitprog_reset,