H3: remove superfluous stream / reader conversion for ReadToEnd

This commit is contained in:
stammw
2019-08-23 16:21:37 +02:00
committed by Jean-Christophe BEGUE
parent a90ad6e8b8
commit 34088990db
-8
View File
@@ -157,14 +157,6 @@ impl ReadToEnd {
state: RecvBodyState::Receiving(BytesMut::with_capacity(capacity)),
}
}
pub fn into_reader(self) -> BodyReader {
BodyReader::new(self.recv, self.conn, self.stream_id)
}
pub fn into_stream(self) -> RecvBodyStream {
RecvBodyStream::new(self.recv, self.conn, self.stream_id)
}
}
enum RecvBodyState {