Skip to content

Commit

Permalink
Removing unused wrapper to libc::close.
Browse files Browse the repository at this point in the history
  • Loading branch information
darnuria authored and alexcrichton committed Jun 7, 2014
1 parent d4dec47 commit 5915763
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libstd/os.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 5915763

Please sign in to comment.