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:
parent
b79de0b431
commit
cb101ec6cf
2 changed files with 1 additions and 8 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue