Minor rtc_event_log_impl cleanup.
Removed unused variables. Bug: webrtc:10756 Change-Id: I7ce8fc3fc5a3c269b4ee74d77425c3e240d91525 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/143161 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28334}
This commit is contained in:

committed by
Commit Bot

parent
6c42d92ccc
commit
a550dad57a
@ -76,9 +76,7 @@ std::unique_ptr<RtcEventLogEncoder> CreateEncoder(
|
|||||||
|
|
||||||
RtcEventLogImpl::RtcEventLogImpl(RtcEventLog::EncodingType encoding_type,
|
RtcEventLogImpl::RtcEventLogImpl(RtcEventLog::EncodingType encoding_type,
|
||||||
TaskQueueFactory* task_queue_factory)
|
TaskQueueFactory* task_queue_factory)
|
||||||
: max_size_bytes_(std::numeric_limits<decltype(max_size_bytes_)>::max()),
|
: event_encoder_(CreateEncoder(encoding_type)),
|
||||||
written_bytes_(0),
|
|
||||||
event_encoder_(CreateEncoder(encoding_type)),
|
|
||||||
num_config_events_written_(0),
|
num_config_events_written_(0),
|
||||||
last_output_ms_(rtc::TimeMillis()),
|
last_output_ms_(rtc::TimeMillis()),
|
||||||
output_scheduled_(false),
|
output_scheduled_(false),
|
||||||
@ -278,8 +276,6 @@ void RtcEventLogImpl::WriteConfigsAndHistoryToOutput(
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RtcEventLogImpl::StopOutput() {
|
void RtcEventLogImpl::StopOutput() {
|
||||||
max_size_bytes_ = std::numeric_limits<decltype(max_size_bytes_)>::max();
|
|
||||||
written_bytes_ = 0;
|
|
||||||
event_output_.reset();
|
event_output_.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -301,7 +297,6 @@ void RtcEventLogImpl::WriteToOutput(const std::string& output_string) {
|
|||||||
StopOutput(); // Clean-up.
|
StopOutput(); // Clean-up.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
written_bytes_ += output_string.size();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
@ -69,8 +69,6 @@ class RtcEventLogImpl final : public RtcEventLog {
|
|||||||
// History containing the most recent (non-configuration) events (~10s).
|
// History containing the most recent (non-configuration) events (~10s).
|
||||||
std::deque<std::unique_ptr<RtcEvent>> history_ RTC_GUARDED_BY(*task_queue_);
|
std::deque<std::unique_ptr<RtcEvent>> history_ RTC_GUARDED_BY(*task_queue_);
|
||||||
|
|
||||||
size_t max_size_bytes_ RTC_GUARDED_BY(*task_queue_);
|
|
||||||
size_t written_bytes_ RTC_GUARDED_BY(*task_queue_);
|
|
||||||
|
|
||||||
std::unique_ptr<RtcEventLogEncoder> event_encoder_
|
std::unique_ptr<RtcEventLogEncoder> event_encoder_
|
||||||
RTC_GUARDED_BY(*task_queue_);
|
RTC_GUARDED_BY(*task_queue_);
|
||||||
|
Reference in New Issue
Block a user