From 1d0bba8224686d054378bcc4e853798d56fdfecf Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 28 Nov 2016 18:25:47 -0700 Subject: Move stdout/err flush into sys --- src/libstd/io/stdio.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/libstd/io') diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index f6ee0be47fa..6419a9ff683 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -81,16 +81,10 @@ impl Read for StdinRaw { } impl Write for StdoutRaw { fn write(&mut self, buf: &[u8]) -> io::Result { self.0.write(buf) } - #[cfg(not(target_os = "redox"))] - fn flush(&mut self) -> io::Result<()> { Ok(()) } - #[cfg(target_os = "redox")] fn flush(&mut self) -> io::Result<()> { self.0.flush() } } impl Write for StderrRaw { fn write(&mut self, buf: &[u8]) -> io::Result { self.0.write(buf) } - #[cfg(not(target_os = "redox"))] - fn flush(&mut self) -> io::Result<()> { Ok(()) } - #[cfg(target_os = "redox")] fn flush(&mut self) -> io::Result<()> { self.0.flush() } } -- cgit 1.4.1-3-g733a5