aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-10-28 23:20:42 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2020-11-04 17:39:35 +0000
commita8b436c511dc39e0785af4c9256b7723692ba60e (patch)
tree1ed7523ee79ade386dbd5ee758d5a8dec29d17d3
parentf3db7f173ecad8aa78367d8995c8b1fe7f2c4332 (diff)
downloadriscv-openocd-a8b436c511dc39e0785af4c9256b7723692ba60e.zip
riscv-openocd-a8b436c511dc39e0785af4c9256b7723692ba60e.tar.gz
riscv-openocd-a8b436c511dc39e0785af4c9256b7723692ba60e.tar.bz2
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 <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5898 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
-rw-r--r--src/transport/transport.c10
-rw-r--r--src/transport/transport.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/src/transport/transport.c b/src/transport/transport.c
index 9214dcd..cb000ab 100644
--- a/src/transport/transport.c
+++ b/src/transport/transport.c
@@ -122,16 +122,6 @@ int allow_transports(struct command_context *ctx, const char * const *vector)
}
/**
- * 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
* specific to a given chip (or chip family).
diff --git a/src/transport/transport.h b/src/transport/transport.h
index 809564e..e04f780 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);