about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/stdio.rs6
1 files changed, 0 insertions, 6 deletions
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<usize> { 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<usize> { 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() }
 }