From def543bc5375538baa33a9806916df6f56e34c1d Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Wed, 4 Apr 2018 18:23:41 +0900 Subject: [PATCH] log: remove unused function Change-Id: Iae807e3e89dd37f4fedd1c7ca891dcd16d44a82e --- src/tbm_log.c | 15 --------------- src/tbm_log.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/src/tbm_log.c b/src/tbm_log.c index 1389964..cba144e 100644 --- a/src/tbm_log.c +++ b/src/tbm_log.c @@ -75,15 +75,6 @@ tbm_log_enable_dlog(unsigned int enable) } void -tbm_log_enable_debug(unsigned int enable) -{ - if (enable) - tbm_log_debug_level = TBM_LOG_LEVEL_DBG; - else - tbm_log_debug_level = TBM_LOG_LEVEL_INFO; -} - -void tbm_log_set_debug_level(int level) { tbm_log_debug_level = level; @@ -223,9 +214,3 @@ tbm_log_print(int level, const char *fmt, ...) assert(level > assert_level); } -void -tbm_log_reset(void) -{ - pthread_mutex_trylock(&log_lock); - pthread_mutex_unlock(&log_lock); -} diff --git a/src/tbm_log.h b/src/tbm_log.h index 2302e25..c806e02 100644 --- a/src/tbm_log.h +++ b/src/tbm_log.h @@ -56,12 +56,10 @@ enum { void tbm_log_enable_color(unsigned int enable); void tbm_log_enable_dlog(unsigned int enable); -void tbm_log_enable_debug(unsigned int enable); void tbm_log_set_debug_level(int level); void tbm_log_set_assert_level(int level); void tbm_log_set_path(const char *path); void tbm_log_print(int level, const char *fmt, ...); -void tbm_log_reset(void); #define TBM_DBG(fmt, args...) \ do { \ -- 2.7.4