gfe-relnote: Deprecate gfe2_reloadable_flag_quic_check_connected_before_flush.
PiperOrigin-RevId: 258375905
Change-Id: Ib00259c634a5ef376a5fff7494ef5148db76aed4
diff --git a/quic/core/quic_connection.cc b/quic/core/quic_connection.cc
index 5ef9720..1ad2ddb 100644
--- a/quic/core/quic_connection.cc
+++ b/quic/core/quic_connection.cc
@@ -1709,8 +1709,7 @@
}
void QuicConnection::OnCanWrite() {
- if (GetQuicReloadableFlag(quic_check_connected_before_flush) && !connected_) {
- QUIC_RELOADABLE_FLAG_COUNT_N(quic_check_connected_before_flush, 2, 2);
+ if (!connected_) {
return;
}
DCHECK(!writer_->IsWriteBlocked());
@@ -2903,12 +2902,7 @@
}
QuicConnection::ScopedPacketFlusher::~ScopedPacketFlusher() {
- if (connection_ == nullptr) {
- return;
- }
- if (GetQuicReloadableFlag(quic_check_connected_before_flush) &&
- !connection_->connected()) {
- QUIC_RELOADABLE_FLAG_COUNT_N(quic_check_connected_before_flush, 1, 2);
+ if (connection_ == nullptr || !connection_->connected()) {
return;
}