mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-11-03 04:17:20 -05:00
Cleanup: Removed unused code
This commit is contained in:
parent
11b9c61ae7
commit
f9a1ced5c9
15
log/log.c
15
log/log.c
@ -99,7 +99,6 @@ typedef struct log_tag
|
||||
static log_t loglist[LOG_MAXLOGS];
|
||||
|
||||
static int _get_log_id(void);
|
||||
static void _release_log_id(int log_id);
|
||||
static void _lock_logger(void);
|
||||
static void _unlock_logger(void);
|
||||
|
||||
@ -614,15 +613,12 @@ void log_write(int log_id, unsigned priority, const char *cat, const char *func,
|
||||
void log_write_direct(int log_id, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
time_t now;
|
||||
char line[LOG_MAXLINELEN];
|
||||
|
||||
if (log_id < 0 || log_id >= LOG_MAXLOGS) return;
|
||||
|
||||
va_start(ap, fmt);
|
||||
|
||||
now = time(NULL);
|
||||
|
||||
_lock_logger();
|
||||
__vsnprintf(line, LOG_MAXLINELEN, fmt, ap);
|
||||
if (_log_open (log_id))
|
||||
@ -659,17 +655,6 @@ static int _get_log_id(void)
|
||||
return id;
|
||||
}
|
||||
|
||||
static void _release_log_id(int log_id)
|
||||
{
|
||||
/* lock mutex */
|
||||
_lock_logger();
|
||||
|
||||
loglist[log_id].in_use = 0;
|
||||
|
||||
/* unlock mutex */
|
||||
_unlock_logger();
|
||||
}
|
||||
|
||||
static void _lock_logger(void)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user