Remove webrtc::ToLogString as no longer needed
These function were replaced with AbslStringify Bug: None Change-Id: Ia34b98ed4e0ed18bb52fe9370cff7a6f70caae6d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/364621 Commit-Queue: Harald Alvestrand <hta@webrtc.org> Auto-Submit: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43346}
This commit is contained in:
parent
661ed679a2
commit
141dfb036d
@ -139,9 +139,6 @@ inline constexpr DataRate operator*(const Frequency frequency,
|
||||
}
|
||||
|
||||
RTC_EXPORT std::string ToString(DataRate value);
|
||||
inline std::string ToLogString(DataRate value) {
|
||||
return ToString(value);
|
||||
}
|
||||
|
||||
template <typename Sink>
|
||||
void AbslStringify(Sink& sink, DataRate value) {
|
||||
|
||||
@ -50,9 +50,6 @@ class DataSize final : public rtc_units_impl::RelativeUnit<DataSize> {
|
||||
};
|
||||
|
||||
RTC_EXPORT std::string ToString(DataSize value);
|
||||
inline std::string ToLogString(DataSize value) {
|
||||
return ToString(value);
|
||||
}
|
||||
|
||||
template <typename Sink>
|
||||
void AbslStringify(Sink& sink, DataSize value) {
|
||||
|
||||
@ -87,9 +87,6 @@ inline constexpr double operator*(TimeDelta time_delta, Frequency frequency) {
|
||||
}
|
||||
|
||||
RTC_EXPORT std::string ToString(Frequency value);
|
||||
inline std::string ToLogString(Frequency value) {
|
||||
return ToString(value);
|
||||
}
|
||||
|
||||
template <typename Sink>
|
||||
void AbslStringify(Sink& sink, Frequency value) {
|
||||
|
||||
@ -94,9 +94,6 @@ class TimeDelta final : public rtc_units_impl::RelativeUnit<TimeDelta> {
|
||||
};
|
||||
|
||||
RTC_EXPORT std::string ToString(TimeDelta value);
|
||||
inline std::string ToLogString(TimeDelta value) {
|
||||
return ToString(value);
|
||||
}
|
||||
|
||||
template <typename Sink>
|
||||
void AbslStringify(Sink& sink, TimeDelta value) {
|
||||
|
||||
@ -123,9 +123,6 @@ class Timestamp final : public rtc_units_impl::UnitBase<Timestamp> {
|
||||
};
|
||||
|
||||
RTC_EXPORT std::string ToString(Timestamp value);
|
||||
inline std::string ToLogString(Timestamp value) {
|
||||
return ToString(value);
|
||||
}
|
||||
|
||||
template <typename Sink>
|
||||
void AbslStringify(Sink& sink, Timestamp value) {
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "absl/algorithm/container.h"
|
||||
#include "absl/strings/str_cat.h"
|
||||
#include "api/array_view.h"
|
||||
#include "api/crypto/frame_decryptor_interface.h"
|
||||
#include "api/scoped_refptr.h"
|
||||
@ -160,8 +161,8 @@ bool IsKeyFrameAndUnspecifiedResolution(const EncodedFrame& frame) {
|
||||
frame.EncodedImage()._encodedHeight == 0;
|
||||
}
|
||||
|
||||
std::string OptionalDelayToLogString(const std::optional<TimeDelta> opt) {
|
||||
return opt.has_value() ? ToLogString(*opt) : "<unset>";
|
||||
std::string OptionalDelayToLogString(std::optional<TimeDelta> opt) {
|
||||
return opt.has_value() ? absl::StrCat(*opt) : "<unset>";
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user