diff options
| author | Axel Viala <axel.viala@darnuria.eu> | 2014-06-07 00:43:45 +0200 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-06 19:52:25 -0700 |
| commit | 59157631061744947df9a7751ac55fe2304e67ad (patch) | |
| tree | 91d1c7d03a8223b34c9716e76f315a1e0fcda6d7 | |
| parent | d4dec4701a5e5e6fb4f66c838b9646bc1c1f711b (diff) | |
| download | rust-59157631061744947df9a7751ac55fe2304e67ad.tar.gz rust-59157631061744947df9a7751ac55fe2304e67ad.zip | |
Removing unused wrapper to libc::close.
| -rw-r--r-- | src/libstd/os.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 1f75754f4d5..381ebc08200 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -56,12 +56,6 @@ use libc::c_char; #[cfg(windows)] use str::OwnedStr; -/// Delegates to the libc close() function, returning the same return value. -pub fn close(fd: int) -> int { - unsafe { - libc::close(fd as c_int) as int - } -} pub static TMPBUF_SZ : uint = 1000u; static BUF_BYTES : uint = 2048u; |
