Remove QuicStream::read_side_closed().

The function is unused.

gfe-relnote: no behavior change. Not protected.
PiperOrigin-RevId: 279118507
Change-Id: Iec93bfa130843f686716aee134218a0cdc0f6add
diff --git a/quic/core/quic_stream.h b/quic/core/quic_stream.h
index ef8a6c1..de0f619 100644
--- a/quic/core/quic_stream.h
+++ b/quic/core/quic_stream.h
@@ -416,9 +416,6 @@
              QuicOptional<QuicFlowController> flow_controller,
              QuicFlowController* connection_flow_controller);
 
-  // Subclasses and consumers should use reading_stopped.
-  bool read_side_closed() const { return read_side_closed_; }
-
   // Calls MaybeSendBlocked on the stream's flow controller and the connection
   // level flow controller.  If the stream is flow control blocked by the
   // connection-level flow controller but not by the stream-level flow
diff --git a/quic/test_tools/quic_stream_peer.cc b/quic/test_tools/quic_stream_peer.cc
index d501deb..4296198 100644
--- a/quic/test_tools/quic_stream_peer.cc
+++ b/quic/test_tools/quic_stream_peer.cc
@@ -29,7 +29,7 @@
 
 // static
 bool QuicStreamPeer::read_side_closed(QuicStream* stream) {
-  return stream->read_side_closed();
+  return stream->read_side_closed_;
 }
 
 // static