mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
[Stats] Delete unused RTCStatsMember type alias.
With this CL the migration to absl::optional<T> is complete. Bug: webrtc:15164 Change-Id: I978d86833fbd39154ed9026206a02ea7496f8c4f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/335640 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Henrik Boström <hbos@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@google.com> Cr-Commit-Position: refs/heads/main@{#41616}
This commit is contained in:
parent
6a3bbefd58
commit
523eff622e
1 changed files with 3 additions and 6 deletions
|
@ -23,14 +23,11 @@
|
||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
// TODO(https://crbug.com/webrtc/15164): Migrate all uses of RTCStatsMember to
|
// A light-weight wrapper of an RTCStats attribute, i.e. an individual metric of
|
||||||
// absl::optional and delete this type alias.
|
// type absl::optional<T>.
|
||||||
template <typename T>
|
|
||||||
using RTCStatsMember = absl::optional<T>;
|
|
||||||
|
|
||||||
// A light-weight wrapper of an RTCStats attribute (an individual metric).
|
|
||||||
class RTC_EXPORT Attribute {
|
class RTC_EXPORT Attribute {
|
||||||
public:
|
public:
|
||||||
|
// All supported attribute types.
|
||||||
typedef absl::variant<const absl::optional<bool>*,
|
typedef absl::variant<const absl::optional<bool>*,
|
||||||
const absl::optional<int32_t>*,
|
const absl::optional<int32_t>*,
|
||||||
const absl::optional<uint32_t>*,
|
const absl::optional<uint32_t>*,
|
||||||
|
|
Loading…
Reference in a new issue