os: drop obsolete LogSetParameter()

No callers anymore, thus can be dropped.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-10 14:20:54 +01:00 committed by Enrico Weigelt, metux IT consult .
parent e203a6c57d
commit 65a3954b2e
2 changed files with 0 additions and 27 deletions

View File

@ -280,13 +280,6 @@ extern _X_EXPORT int
timingsafe_memcmp(const void *b1, const void *b2, size_t len);
#endif
/* Logging. */
typedef enum _LogParameter {
XLOG_SYNC,
XLOG_VERBOSITY,
XLOG_FILE_VERBOSITY
} LogParameter;
/* Flags for log messages. */
typedef enum {
X_PROBED, /* Value was probed */
@ -309,8 +302,6 @@ extern void
LogSetDisplay(void);
extern _X_EXPORT void
LogClose(enum ExitCode error);
extern _X_EXPORT Bool
LogSetParameter(LogParameter param, int value);
extern _X_EXPORT void
LogVMessageVerb(MessageType type, int verb, const char *format, va_list args)
_X_ATTRIBUTE_PRINTF(3, 0);

View File

@ -310,24 +310,6 @@ LogClose(enum ExitCode error)
}
}
Bool
LogSetParameter(LogParameter param, int value)
{
switch (param) {
case XLOG_SYNC:
logSync = value ? TRUE : FALSE;
return TRUE;
case XLOG_VERBOSITY:
logVerbosity = value;
return TRUE;
case XLOG_FILE_VERBOSITY:
logFileVerbosity = value;
return TRUE;
default:
return FALSE;
}
}
enum {
LMOD_LONG = 0x1,
LMOD_LONGLONG = 0x2,