diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2010-04-10 22:25:22 +0800 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2010-04-10 22:25:22 +0800 |
commit | f1be0e6af2e204805a8bc2e8cadf828b9fa46c98 (patch) | |
tree | 99a50cb7fb54d8cab6d6b064bd43ff6f18d64c4b /src/helper/log.c | |
parent | 2ea78551ab3388032ad78cdeefac7ab75e3bb134 (diff) | |
download | riscv-openocd-f1be0e6af2e204805a8bc2e8cadf828b9fa46c98.zip riscv-openocd-f1be0e6af2e204805a8bc2e8cadf828b9fa46c98.tar.gz riscv-openocd-f1be0e6af2e204805a8bc2e8cadf828b9fa46c98.tar.bz2 |
HELPER/LOG: review unused symbols
Remove unused functions:
- log_catch
- log_rethrow
- log_try
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/helper/log.c')
-rw-r--r-- | src/helper/log.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/helper/log.c b/src/helper/log.c index 7450fef..7ace930 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -114,44 +114,6 @@ static void log_forward(const char *file, unsigned line, const char *function, c } } -void log_try(void) -{ - log_forward_count++; -} - -void log_catch(void) -{ - assert(log_forward_count>0); - log_forward_count--; -} - -void log_rethrow(void) -{ - log_catch(); - if (log_forward_count==0) - { - struct store_log_forward *log; - - log = log_head; - while (log != NULL) - { - log_forward(log->file, log->line, log->function, log->string); - - struct store_log_forward *t=log; - log = log->next; - - free((void *)t->file); - free((void *)t->function); - free((void *)t->string); - free(t); - - } - - log_head = NULL; - } -} - - /* The log_puts() serves to somewhat different goals: * * - logging |