diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2010-03-24 12:08:45 +0800 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-03-24 07:44:28 +0100 |
commit | 1cda3e64e4555d64496709b23f0af1da8f3a7034 (patch) | |
tree | 73ddbf3e81bc56fe8521ef05b42f15983b35eb2e /src/server | |
parent | 9f1d9499ce5d15f25c3d0f150348e16deb2e7aaf (diff) | |
download | openocd_libswd-1cda3e64e4555d64496709b23f0af1da8f3a7034.tar.gz openocd_libswd-1cda3e64e4555d64496709b23f0af1da8f3a7034.tar.bz2 openocd_libswd-1cda3e64e4555d64496709b23f0af1da8f3a7034.tar.xz openocd_libswd-1cda3e64e4555d64496709b23f0af1da8f3a7034.zip |
server: review unused symbols
Remove unused function
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/server.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/server/server.c b/src/server/server.c index 1a6250ce..0d3273b3 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -233,34 +233,6 @@ int add_service(char *name, enum connection_type type, unsigned short port, int return ERROR_OK; } -int remove_service(unsigned short port) -{ - struct service **p = &services; - struct service *c; - - /* find service */ - while ((c = *p)) - { - if (c->port == port) - { - if (c->name) - free(c->name); - - if (c->priv) - free(c->priv); - - /* delete service */ - *p = c->next; - free(c); - } - - /* redirect p to next list pointer */ - p = &(*p)->next; - } - - return ERROR_OK; -} - static int remove_services(void) { struct service *c = services; |