Remove QuicCryptoStream::OnSuccessfulVersionNegotiation
gfe-relnote: Remove no-op function. No behavior change, not flag protected
PiperOrigin-RevId: 296990713
Change-Id: I9aef904254632062d7675ea20393916f7c65e006
diff --git a/quic/core/quic_crypto_stream.cc b/quic/core/quic_crypto_stream.cc
index ba5219a..bf0106c 100644
--- a/quic/core/quic_crypto_stream.cc
+++ b/quic/core/quic_crypto_stream.cc
@@ -182,9 +182,6 @@
return GetQuicFlag(FLAGS_quic_max_buffered_crypto_bytes);
}
-void QuicCryptoStream::OnSuccessfulVersionNegotiation(
- const ParsedQuicVersion& /*version*/) {}
-
bool QuicCryptoStream::OnCryptoFrameAcked(const QuicCryptoFrame& frame,
QuicTime::Delta /*ack_delay_time*/) {
QuicByteCount newly_acked_length = 0;
diff --git a/quic/core/quic_crypto_stream.h b/quic/core/quic_crypto_stream.h
index 17474a8..ecd3201 100644
--- a/quic/core/quic_crypto_stream.h
+++ b/quic/core/quic_crypto_stream.h
@@ -98,10 +98,6 @@
// encryption level |level|.
virtual size_t BufferSizeLimitForLevel(EncryptionLevel level) const;
- // Called when the underlying QuicConnection has agreed upon a QUIC version to
- // use.
- virtual void OnSuccessfulVersionNegotiation(const ParsedQuicVersion& version);
-
// Called to cancel retransmission of unencrypted crypto stream data.
void NeuterUnencryptedStreamData();
diff --git a/quic/core/quic_session.cc b/quic/core/quic_session.cc
index 073758e..c7890d7 100644
--- a/quic/core/quic_session.cc
+++ b/quic/core/quic_session.cc
@@ -484,9 +484,7 @@
}
void QuicSession::OnSuccessfulVersionNegotiation(
- const ParsedQuicVersion& version) {
- GetMutableCryptoStream()->OnSuccessfulVersionNegotiation(version);
-}
+ const ParsedQuicVersion& /*version*/) {}
void QuicSession::OnPacketReceived(const QuicSocketAddress& /*self_address*/,
const QuicSocketAddress& peer_address,