From 65a3954b2e683f07a670735e76015d8d3717d5ec Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 10 Feb 2025 14:20:54 +0100 Subject: [PATCH] os: drop obsolete LogSetParameter() No callers anymore, thus can be dropped. Signed-off-by: Enrico Weigelt, metux IT consult --- include/os.h | 9 --------- os/log.c | 18 ------------------ 2 files changed, 27 deletions(-) diff --git a/include/os.h b/include/os.h index 44faf2d7a..ba39cb95b 100644 --- a/include/os.h +++ b/include/os.h @@ -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); diff --git a/os/log.c b/os/log.c index 541f96f7f..939526fd7 100644 --- a/os/log.c +++ b/os/log.c @@ -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,