From 8d90d3f36871a00023cc1f313f91e351c287ca15 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 11 Aug 2015 17:27:05 -0700 Subject: Remove all unstable deprecated functionality This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions. --- src/libstd/sys/unix/fs.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/libstd/sys/unix/fs.rs') diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index 922a213f9c2..751b8e48263 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -509,13 +509,6 @@ pub fn lstat(p: &Path) -> io::Result { Ok(FileAttr { stat: stat }) } -pub fn utimes(p: &Path, atime: u64, mtime: u64) -> io::Result<()> { - let p = try!(cstr(p)); - let buf = [super::ms_to_timeval(atime), super::ms_to_timeval(mtime)]; - try!(cvt(unsafe { c::utimes(p.as_ptr(), buf.as_ptr()) })); - Ok(()) -} - pub fn canonicalize(p: &Path) -> io::Result { let path = try!(CString::new(p.as_os_str().as_bytes())); let mut buf = vec![0u8; 16 * 1024]; -- cgit 1.4.1-3-g733a5