From 57404e44984fd0e463d965881dbc4112fc825e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Fri, 6 Oct 2023 23:31:56 +0200 Subject: [PATCH] pipewire: log: remove `_pw_log_topic_new()` This function was introduced in 52bd80aaa45c8b ("log: add topic loggers and a default topic") but that commit made no use of it, and no subsequent commits ever touched the function in any way. No code in the repository, on debian codesearch, or on github uses it. So remove it. --- src/pipewire/log.c | 7 ------- src/pipewire/log.h | 11 ----------- 2 files changed, 18 deletions(-) diff --git a/src/pipewire/log.c b/src/pipewire/log.c index 2a4876a21..8dcbeb8fc 100644 --- a/src/pipewire/log.c +++ b/src/pipewire/log.c @@ -233,13 +233,6 @@ void pw_log_log_object(enum spa_log_level level, } } -SPA_EXPORT -void -_pw_log_topic_new(struct spa_log_topic *topic) -{ - spa_log_topic_init(global_log, topic); -} - void pw_log_init(void) { diff --git a/src/pipewire/log.h b/src/pipewire/log.h index ad1278943..b1cdc4c52 100644 --- a/src/pipewire/log.h +++ b/src/pipewire/log.h @@ -72,17 +72,6 @@ pw_log_logv(enum spa_log_level level, int line, const char *func, const char *fmt, va_list args) SPA_PRINTF_FUNC(5, 0); -/** Initialize the log topic. The returned topic is owned by the pipewire - * context and the topic must not be modified or freed. - * Do not use this function directly, use one of PW_LOG_TOPIC_* instead. - * - * \see PW_LOG_TOPIC_STATIC - * \see PW_LOG_TOPIC_EXTERN - * \see PW_LOG_TOPIC - */ -void -_pw_log_topic_new(struct spa_log_topic *topic); - /** * Declare a static log topic named \a var. The usual usage is: * \code