Skip to content

Commit 6ceaa2f

Browse files
committed
Rollup merge of rust-lang#30850 - ranma42:cleanup-io, r=alexcrichton
In 8d90d3f `BufStream`, the only consumer of `InternalBufWriter`, was removed. As implied by the name, this type is private, hence it is currently dead code.
2 parents 2484884 + fb82398 commit 6ceaa2f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/libstd/io/buffered.rs

-15
Original file line numberDiff line numberDiff line change
@@ -772,21 +772,6 @@ impl<W: Write> fmt::Debug for LineWriter<W> where W: fmt::Debug {
772772
}
773773
}
774774

775-
struct InternalBufWriter<W: Write>(BufWriter<W>);
776-
777-
impl<W: Read + Write> InternalBufWriter<W> {
778-
fn get_mut(&mut self) -> &mut BufWriter<W> {
779-
let InternalBufWriter(ref mut w) = *self;
780-
return w;
781-
}
782-
}
783-
784-
impl<W: Read + Write> Read for InternalBufWriter<W> {
785-
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
786-
self.get_mut().inner.as_mut().unwrap().read(buf)
787-
}
788-
}
789-
790775
#[cfg(test)]
791776
mod tests {
792777
use prelude::v1::*;

0 commit comments

Comments
 (0)