(!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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-09-09 20:57:39 +02:00
parent 41f214b6fb
commit 11e5dfa409
2 changed files with 0 additions and 37 deletions

View File

@ -310,24 +310,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 { enum {
LMOD_LONG = 0x1, LMOD_LONG = 0x1,
LMOD_LONGLONG = 0x2, LMOD_LONGLONG = 0x2,

View File

@ -40,25 +40,6 @@ void LogSetDisplay(void);
*/ */
void LogClose(enum ExitCode error); 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 #ifdef DEBUG
/** /**
* @brief log debug messages (like errors) if symbol DEBUG is defined * @brief log debug messages (like errors) if symbol DEBUG is defined