Remove the dead code identified by the new lint

This commit is contained in:
Jakub Wieczorek
2014-06-06 15:51:42 +02:00
parent 0271224bda
commit f7d86b2f4a
35 changed files with 61 additions and 146 deletions

View File

@@ -58,7 +58,10 @@ fn addr_to_sockaddr_un(addr: &CString) -> IoResult<(libc::sockaddr_storage, uint
struct Inner {
fd: fd_t,
lock: mutex::NativeMutex,
// Unused on Linux, where this lock is not necessary.
#[allow(dead_code)]
lock: mutex::NativeMutex
}
impl Inner {