Replace QuicConnection's WriteAndBundleAcksIfNotBlocked with WriteIfNotBlocked because they're functionally equivalent.
PiperOrigin-RevId: 366994317
Change-Id: I515b718b81ffc0248fcbfb733da7188bc8bfdc2e
diff --git a/quic/core/quic_connection.cc b/quic/core/quic_connection.cc
index acab3f7..7f10238 100644
--- a/quic/core/quic_connection.cc
+++ b/quic/core/quic_connection.cc
@@ -117,7 +117,7 @@
void OnAlarm() override {
QUICHE_DCHECK(connection_->connected());
- connection_->WriteAndBundleAcksIfNotBlocked();
+ connection_->WriteIfNotBlocked();
}
private:
@@ -2353,7 +2353,7 @@
if (defer_send_in_response_to_packets_) {
send_alarm_->Update(clock_->ApproximateNow(), QuicTime::Delta::Zero());
} else {
- WriteAndBundleAcksIfNotBlocked();
+ WriteIfNotBlocked();
}
}
@@ -2825,13 +2825,6 @@
}
}
-void QuicConnection::WriteAndBundleAcksIfNotBlocked() {
- if (!HandleWriteBlocked()) {
- ScopedPacketFlusher flusher(this);
- WriteIfNotBlocked();
- }
-}
-
void QuicConnection::ReplaceInitialServerConnectionId(
const QuicConnectionId& new_server_connection_id) {
QUICHE_DCHECK(perspective_ == Perspective::IS_CLIENT);
diff --git a/quic/core/quic_connection.h b/quic/core/quic_connection.h
index 0eb67dc..31ba053 100644
--- a/quic/core/quic_connection.h
+++ b/quic/core/quic_connection.h
@@ -601,10 +601,6 @@
// If the socket is not blocked, writes queued packets.
void WriteIfNotBlocked();
- // If the socket is not blocked, writes queued packets and bundles any pending
- // ACKs.
- void WriteAndBundleAcksIfNotBlocked();
-
// Set the packet writer.
void SetQuicPacketWriter(QuicPacketWriter* writer, bool owns_writer) {
QUICHE_DCHECK(writer != nullptr);