]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
target: drop struct target_type::target_jim_commands()
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 10 May 2025 12:14:05 +0000 (14:14 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 25 May 2025 12:42:46 +0000 (12:42 +0000)
The API was introduced in 2008 by commit 8d73c2a9b0c0 ("duan ellis
target tcl work in progress") and never used.

Drop it!

Change-Id: Icbc5789f59696bd28f9d1151bc3e29f4adb74670
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8903
Tested-by: jenkins
src/target/target_type.h

index eddedbf34fe5ddce308ab13b8b7c16eebcba8a68..5b0dc5a6c0c8ad679dd46d8f3f38b7e7030c7fc6 100644 (file)
@@ -201,10 +201,6 @@ struct target_type {
        /* otherwise: JIM_OK, or JIM_ERR, */
        int (*target_jim_configure)(struct target *target, struct jim_getopt_info *goi);
 
-       /* target commands specifically handled by the target */
-       /* returns JIM_OK, or JIM_ERR, or JIM_CONTINUE - if option not understood */
-       int (*target_jim_commands)(struct target *target, struct jim_getopt_info *goi);
-
        /**
         * This method is used to perform target setup that requires
         * JTAG access.