diff options
| author | Kiet Tran <ktt3ja@gmail.com> | 2013-12-08 02:55:28 -0500 |
|---|---|---|
| committer | Kiet Tran <ktt3ja@gmail.com> | 2013-12-08 02:55:28 -0500 |
| commit | 1755408d1a58684b6c9bce11aeceb18a1ec2d66e (patch) | |
| tree | 9d781272021fe4ead382ffc8f87c048f194e25b5 /src/libstd/io/native | |
| parent | c06dd0e0afb4b78ab4e482a7488adcf1c865bd19 (diff) | |
| download | rust-1755408d1a58684b6c9bce11aeceb18a1ec2d66e.tar.gz rust-1755408d1a58684b6c9bce11aeceb18a1ec2d66e.zip | |
Remove dead codes
Diffstat (limited to 'src/libstd/io/native')
| -rw-r--r-- | src/libstd/io/native/file.rs | 4 | ||||
| -rw-r--r-- | src/libstd/io/native/mod.rs | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/io/native/file.rs b/src/libstd/io/native/file.rs index 218040b72d6..7b5104657d9 100644 --- a/src/libstd/io/native/file.rs +++ b/src/libstd/io/native/file.rs @@ -756,10 +756,6 @@ pub fn link(src: &CString, dst: &CString) -> IoResult<()> { #[cfg(windows)] fn mkstat(stat: &libc::stat, path: &CString) -> io::FileStat { let path = unsafe { CString::new(path.with_ref(|p| p), false) }; - - // FileStat times are in milliseconds - fn mktime(secs: u64, nsecs: u64) -> u64 { secs * 1000 + nsecs / 1000000 } - let kind = match (stat.st_mode as c_int) & libc::S_IFMT { libc::S_IFREG => io::TypeFile, libc::S_IFDIR => io::TypeDirectory, diff --git a/src/libstd/io/native/mod.rs b/src/libstd/io/native/mod.rs index c92f480728e..00b26116e67 100644 --- a/src/libstd/io/native/mod.rs +++ b/src/libstd/io/native/mod.rs @@ -100,6 +100,7 @@ fn mkerr_libc(ret: libc::c_int) -> IoResult<()> { } // windows has zero values as errors +#[cfg(windows)] fn mkerr_winbool(ret: libc::c_int) -> IoResult<()> { if ret == 0 { Err(last_error()) |
