pipewire: log: remove _pw_log_topic_new()

This function was introduced in 52bd80aaa4 ("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.
This commit is contained in:
Barnabás Pőcze 2023-10-06 23:31:56 +02:00
parent 5d7900c4aa
commit 57404e4498
2 changed files with 0 additions and 18 deletions

View file

@ -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 void
pw_log_init(void) pw_log_init(void)
{ {

View file

@ -72,17 +72,6 @@ pw_log_logv(enum spa_log_level level,
int line, const char *func, int line, const char *func,
const char *fmt, va_list args) SPA_PRINTF_FUNC(5, 0); 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: * Declare a static log topic named \a var. The usual usage is:
* \code * \code