From: Antonio Borneo Date: Wed, 28 Oct 2020 22:20:42 +0000 (+0100) Subject: transport: remove unused function transports_are_declared() X-Git-Tag: v0.11.0-rc1~64 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=a8b436c511dc39e0785af4c9256b7723692ba60e transport: remove unused function transports_are_declared() The only use of this function has been removed with commit 159f11fefc19 ("jtag: set default "jtag_only" to uninitialized transports"). Get rid of the unused function. Change-Id: I79dd1d55bd54ed8edc39ed3443e6c3c01794f063 Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/5898 Tested-by: jenkins Reviewed-by: Tomas Vanek --- diff --git a/src/transport/transport.c b/src/transport/transport.c index 9214dcd774..cb000ab114 100644 --- a/src/transport/transport.c +++ b/src/transport/transport.c @@ -121,16 +121,6 @@ int allow_transports(struct command_context *ctx, const char * const *vector) return ERROR_OK; } -/** - * Used to verify correct adapter driver initialization. - * - * @returns true if the adapter declares one or more transports. - */ -bool transports_are_declared(void) -{ - return allowed_transports != NULL; -} - /** * Registers a transport. There are general purpose transports * (such as JTAG), as well as relatively proprietary ones which are diff --git a/src/transport/transport.h b/src/transport/transport.h index 809564e789..e04f780635 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h @@ -92,8 +92,6 @@ COMMAND_HELPER(transport_list_parse, char ***vector); int allow_transports(struct command_context *ctx, const char * const *vector); -bool transports_are_declared(void); - bool transport_is_jtag(void); bool transport_is_swd(void); bool transport_is_dapdirect_jtag(void);