about summary refs log tree commit diff
path: root/src/libcore/run.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/run.rs')
-rw-r--r--src/libcore/run.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libcore/run.rs b/src/libcore/run.rs
index 60fe54109d0..b753c647627 100644
--- a/src/libcore/run.rs
+++ b/src/libcore/run.rs
@@ -20,7 +20,6 @@ use libc::{pid_t, c_void, c_int};
 use oldcomm;
 use option::{Some, None};
 use os;
-use prelude::*;
 use ptr;
 use run;
 use str;
@@ -350,7 +349,7 @@ pub fn program_output(prog: &str, args: &[~str]) ->
     return {status: status, out: move outs, err: move errs};
 }
 
-pub fn writeclose(fd: c_int, s: ~str) {
+fn writeclose(fd: c_int, s: ~str) {
     use io::WriterUtil;
 
     error!("writeclose %d, %s", fd as int, s);
@@ -360,7 +359,7 @@ pub fn writeclose(fd: c_int, s: ~str) {
     os::close(fd);
 }
 
-pub fn readclose(fd: c_int) -> ~str {
+fn readclose(fd: c_int) -> ~str {
     let file = os::fdopen(fd);
     let reader = io::FILE_reader(file, false);
     let buf = io::with_bytes_writer(|writer| {
@@ -418,11 +417,8 @@ pub fn waitpid(pid: pid_t) -> int {
 
 #[cfg(test)]
 mod tests {
-    use debug;
     use io::WriterUtil;
-    use option::{None, Some};
     use os;
-    use run::{readclose, writeclose};
     use run;
 
     // Regression test for memory leaks