From: Antonio Borneo Date: Sat, 10 Apr 2010 09:23:06 +0000 (+0800) Subject: HELLO: review unused symbols X-Git-Tag: v0.5.0-rc1~775 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=b2468e3c4f09cd4e9f204aeb885dfdbbeb0a8dbb HELLO: review unused symbols Remove unused functions: - hello_register_commands Signed-off-by: Antonio Borneo --- diff --git a/src/hello.c b/src/hello.c index 8cd5fabb47..d3fce3dc58 100644 --- a/src/hello.c +++ b/src/hello.c @@ -121,8 +121,3 @@ const struct command_registration hello_command_handlers[] = { }, COMMAND_REGISTRATION_DONE }; - -int hello_register_commands(struct command_context *cmd_ctx) -{ - return register_commands(cmd_ctx, NULL, hello_command_handlers); -} diff --git a/src/hello.h b/src/hello.h index fc674ad6ef..f41c67a3ca 100644 --- a/src/hello.h +++ b/src/hello.h @@ -20,12 +20,8 @@ #ifndef OPENOCD_HELLO_H #define OPENOCD_HELLO_H -struct command_context; struct command_registration; -/// Register the hello commands in the specified command_context -int hello_register_commands(struct command_context *cmd_ctx); - /** * Export the registration for the hello command group, so it can be * embedded in example drivers.