| Index: net/quic/quic_data_writer.cc
|
| diff --git a/net/quic/quic_data_writer.cc b/net/quic/quic_data_writer.cc
|
| index 1c6e47fe6aa66d2ba7bdb18c535b4274e97c14bc..05bc044b616f49aafd9f9060fbc041c1d9cefb9d 100644
|
| --- a/net/quic/quic_data_writer.cc
|
| +++ b/net/quic/quic_data_writer.cc
|
| @@ -159,37 +159,5 @@ void QuicDataWriter::WritePadding() {
|
| length_ = capacity_;
|
| }
|
|
|
| -bool QuicDataWriter::WriteUInt8ToOffset(uint8 value, size_t offset) {
|
| - if (offset >= capacity_) {
|
| - LOG(DFATAL) << "offset: " << offset << " >= capacity: " << capacity_;
|
| - return false;
|
| - }
|
| - size_t latched_length = length_;
|
| - length_ = offset;
|
| - bool success = WriteUInt8(value);
|
| - DCHECK_LE(length_, latched_length);
|
| - length_ = latched_length;
|
| - return success;
|
| -}
|
| -
|
| -bool QuicDataWriter::WriteUInt32ToOffset(uint32 value, size_t offset) {
|
| - DCHECK_LT(offset, capacity_);
|
| - size_t latched_length = length_;
|
| - length_ = offset;
|
| - bool success = WriteUInt32(value);
|
| - DCHECK_LE(length_, latched_length);
|
| - length_ = latched_length;
|
| - return success;
|
| -}
|
| -
|
| -bool QuicDataWriter::WriteUInt48ToOffset(uint64 value, size_t offset) {
|
| - DCHECK_LT(offset, capacity_);
|
| - size_t latched_length = length_;
|
| - length_ = offset;
|
| - bool success = WriteUInt48(value);
|
| - DCHECK_LE(length_, latched_length);
|
| - length_ = latched_length;
|
| - return success;
|
| -}
|
|
|
| } // namespace net
|
|
|