1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

refactor: make tr_logGetQueueEnabled() private (#5693)

it is only used in log.cc, so remove it from the public header
This commit is contained in:
Charles Kerr 2023-06-29 14:19:40 -05:00 committed by GitHub
parent b79de0b431
commit cb101ec6cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View file

@ -105,7 +105,7 @@ void logAddImpl(
#else
if (tr_logGetQueueEnabled())
if (log_state.queue_enabled_)
{
auto* const newmsg = new tr_log_message{};
newmsg->level = level;
@ -171,11 +171,6 @@ void tr_logSetQueueEnabled(bool is_enabled)
log_state.queue_enabled_ = is_enabled;
}
bool tr_logGetQueueEnabled()
{
return log_state.queue_enabled_;
}
tr_log_message* tr_logGetQueue()
{
auto const lock = log_state.unique_lock();

View file

@ -69,8 +69,6 @@ struct tr_log_message
#define TR_LOG_MAX_QUEUE_LENGTH 10000
[[nodiscard]] bool tr_logGetQueueEnabled();
void tr_logSetQueueEnabled(bool is_enabled);
[[nodiscard]] tr_log_message* tr_logGetQueue();