diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs index 16ce05ef2dc..a9a79fe2c77 100644 --- a/src/libstd/io/buffered.rs +++ b/src/libstd/io/buffered.rs @@ -772,21 +772,6 @@ fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { } } -struct InternalBufWriter(BufWriter); - -impl InternalBufWriter { - fn get_mut(&mut self) -> &mut BufWriter { - let InternalBufWriter(ref mut w) = *self; - return w; - } -} - -impl Read for InternalBufWriter { - fn read(&mut self, buf: &mut [u8]) -> io::Result { - self.get_mut().inner.as_mut().unwrap().read(buf) - } -} - #[cfg(test)] mod tests { use prelude::v1::*;