Remove deprecated unused QuicStreamSequencer::PrefetchNextRegion() method.
gfe-relnote: n/a, remove unused code.
PiperOrigin-RevId: 265911298
Change-Id: I3910accb6fae7437b946348277e751c0adaf20cc
diff --git a/quic/core/quic_stream_sequencer_buffer.cc b/quic/core/quic_stream_sequencer_buffer.cc
index e68925b..89a6ad7 100644
--- a/quic/core/quic_stream_sequencer_buffer.cc
+++ b/quic/core/quic_stream_sequencer_buffer.cc
@@ -33,8 +33,7 @@
: max_buffer_capacity_bytes_(max_capacity_bytes),
blocks_count_(CalculateBlockCount(max_capacity_bytes)),
total_bytes_read_(0),
- blocks_(nullptr),
- total_bytes_prefetched_(0) {
+ blocks_(nullptr) {
Clear();
}
@@ -53,7 +52,6 @@
num_bytes_buffered_ = 0;
bytes_received_.Clear();
bytes_received_.Add(0, total_bytes_read_);
- total_bytes_prefetched_ = total_bytes_read_;
}
bool QuicStreamSequencerBuffer::RetireBlock(size_t idx) {
@@ -267,8 +265,6 @@
}
}
}
- total_bytes_prefetched_ =
- std::max(total_bytes_prefetched_, total_bytes_read_);
return QUIC_NO_ERROR;
}
@@ -367,19 +363,6 @@
return true;
}
-bool QuicStreamSequencerBuffer::PrefetchNextRegion(iovec* iov) {
- DCHECK(iov);
- DCHECK_LE(total_bytes_read_, total_bytes_prefetched_);
- DCHECK_LE(total_bytes_prefetched_, FirstMissingByte());
-
- if (!PeekRegion(total_bytes_prefetched_, iov)) {
- return false;
- }
-
- total_bytes_prefetched_ += iov->iov_len;
- return true;
-}
-
bool QuicStreamSequencerBuffer::MarkConsumed(size_t bytes_used) {
if (bytes_used > ReadableBytes()) {
return false;
@@ -400,8 +383,7 @@
RetireBlockIfEmpty(block_idx);
}
}
- total_bytes_prefetched_ =
- std::max(total_bytes_read_, total_bytes_prefetched_);
+
return true;
}