Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Unified Diff: net/quic/quic_data_writer.cc

Issue 973683003: CL generated with data from dead-code analysis using (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Change_PrrSender_TimeUntilSend_87535917
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_data_writer.h ('k') | net/quic/quic_data_writer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « net/quic/quic_data_writer.h ('k') | net/quic/quic_data_writer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698