about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-01-14 04:22:20 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-01-14 11:04:43 +0530
commit6ceaa2f77a2d217fd05fa2029c2724564cf43a09 (patch)
tree73bd64dcb5ea68ee18a7aa55606700ca3cb4aaeb /src/libstd
parent24848846cc60760870a942c0f1395484b7602449 (diff)
parentfb82398b2a382649377b7e86407deff1aee4a229 (diff)
downloadrust-6ceaa2f77a2d217fd05fa2029c2724564cf43a09.tar.gz
rust-6ceaa2f77a2d217fd05fa2029c2724564cf43a09.zip
Rollup merge of #30850 - ranma42:cleanup-io, r=alexcrichton
In 8d90d3f36871a00023cc1f313f91e351c287ca15 `BufStream`, the only
consumer of `InternalBufWriter`, was removed. As implied by the name,
this type is private, hence it is currently dead code.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/buffered.rs15
1 files changed, 0 insertions, 15 deletions
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 @@ impl<W: Write> fmt::Debug for LineWriter<W> where W: fmt::Debug {
     }
 }
 
-struct InternalBufWriter<W: Write>(BufWriter<W>);
-
-impl<W: Read + Write> InternalBufWriter<W> {
-    fn get_mut(&mut self) -> &mut BufWriter<W> {
-        let InternalBufWriter(ref mut w) = *self;
-        return w;
-    }
-}
-
-impl<W: Read + Write> Read for InternalBufWriter<W> {
-    fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
-        self.get_mut().inner.as_mut().unwrap().read(buf)
-    }
-}
-
 #[cfg(test)]
 mod tests {
     use prelude::v1::*;