diff --git a/webrtc/base/buffer.h b/webrtc/base/buffer.h index 07345a96a..c7fb95994 100644 --- a/webrtc/base/buffer.h +++ b/webrtc/base/buffer.h @@ -34,10 +34,6 @@ class Buffer { size_t size() const { return size_; } size_t capacity() const { return capacity_; } - // For backwards compatibility. TODO(kwiberg): Remove once Chromium doesn't - // need it anymore. - size_t length() const { return size(); } - Buffer& operator=(const Buffer& buf) { if (&buf != this) { Construct(buf.data(), buf.size(), buf.size()); diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc index d04c63642..8a85fbe36 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc +++ b/webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc @@ -1361,7 +1361,7 @@ TEST_F(RtpSenderVideoTest, SendVideoWithCVO) { // Verify that this packet does have CVO byte. VerifyCVOPacket( reinterpret_cast(transport_.sent_packets_[0]->data()), - transport_.sent_packets_[0]->length(), true, &map, kSeqNum, hdr.rotation); + transport_.sent_packets_[0]->size(), true, &map, kSeqNum, hdr.rotation); // Verify that this packet does have CVO byte. VerifyCVOPacket(