Index: net/spdy/chromium/bidirectional_stream_spdy_impl.cc |
diff --git a/net/spdy/chromium/bidirectional_stream_spdy_impl.cc b/net/spdy/chromium/bidirectional_stream_spdy_impl.cc |
index dbef1f0c8c8c13b625c2fddc09af66eb035e9fd2..6e8987f5e3fc57c3dfc525b9e2d35f6a2f543c4d 100644 |
--- a/net/spdy/chromium/bidirectional_stream_spdy_impl.cc |
+++ b/net/spdy/chromium/bidirectional_stream_spdy_impl.cc |
@@ -110,30 +110,6 @@ int BidirectionalStreamSpdyImpl::ReadData(IOBuffer* buf, int buf_len) { |
return ERR_IO_PENDING; |
} |
-void BidirectionalStreamSpdyImpl::SendData(const scoped_refptr<IOBuffer>& data, |
- int length, |
- bool end_stream) { |
- DCHECK(length > 0 || (length == 0 && end_stream)); |
- DCHECK(!write_pending_); |
- |
- if (written_end_of_stream_) { |
- LOG(ERROR) << "Writing after end of stream is written."; |
- base::ThreadTaskRunnerHandle::Get()->PostTask( |
- FROM_HERE, base::Bind(&BidirectionalStreamSpdyImpl::NotifyError, |
- weak_factory_.GetWeakPtr(), ERR_UNEXPECTED)); |
- return; |
- } |
- |
- write_pending_ = true; |
- written_end_of_stream_ = end_stream; |
- if (MaybeHandleStreamClosedInSendData()) |
- return; |
- |
- DCHECK(!stream_closed_); |
- stream_->SendData(data.get(), length, |
- end_stream ? NO_MORE_DATA_TO_SEND : MORE_DATA_TO_SEND); |
-} |
- |
void BidirectionalStreamSpdyImpl::SendvData( |
const std::vector<scoped_refptr<IOBuffer>>& buffers, |
const std::vector<int>& lengths, |