From e063db820410a2bb80d062f28817d3c45d0e057e Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 9 Sep 2024 20:57:39 +0200 Subject: [PATCH] (!1688) os: log: drop obsolete LogSetParameter() The variables that can be set via this function are all now being accessed directly. Not callers left, so drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- os/log.c | 18 ------------------ os/log_priv.h | 19 ------------------- 2 files changed, 37 deletions(-) diff --git a/os/log.c b/os/log.c index ef16e7b56..c16302b86 100644 --- a/os/log.c +++ b/os/log.c @@ -311,24 +311,6 @@ LogClose(enum ExitCode error) } } -int -LogSetParameter(LogParameter param, int value) -{ - switch (param) { - case XLOG_SYNC: - xorgLogSync = value ? TRUE : FALSE; - return TRUE; - case XLOG_VERBOSITY: - xorgLogVerbosity = value; - return TRUE; - case XLOG_FILE_VERBOSITY: - xorgLogFileVerbosity = value; - return TRUE; - default: - return FALSE; - } -} - enum { LMOD_LONG = 0x1, LMOD_LONGLONG = 0x2, diff --git a/os/log_priv.h b/os/log_priv.h index e83ec6cee..660b121ef 100644 --- a/os/log_priv.h +++ b/os/log_priv.h @@ -40,25 +40,6 @@ void LogSetDisplay(void); */ void LogClose(enum ExitCode error); -/* @brief parameters for LogSetParameter() */ -typedef enum { - XLOG_SYNC, /* enable/disable fsync() after each log file write */ - XLOG_VERBOSITY, /* set console log verbosity */ - XLOG_FILE_VERBOSITY, /* set log file verbosity */ -} LogParameter; - -/** - * @brief set log file paremeters - * - * Set various (int) logging parameters, eg. verbosity. - * See XLOG_* defines - * - * @param ID of the parameter to set - * @param value the new value - * @result TRUE if successful - */ -int LogSetParameter(LogParameter param, int value); - #ifdef DEBUG /** * @brief log debug messages (like errors) if symbol DEBUG is defined