diff options
Diffstat (limited to 'src/libstd/sys/unix/rwlock.rs')
| -rw-r--r-- | src/libstd/sys/unix/rwlock.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libstd/sys/unix/rwlock.rs b/src/libstd/sys/unix/rwlock.rs index b857f4ab75f..adf9da2d067 100644 --- a/src/libstd/sys/unix/rwlock.rs +++ b/src/libstd/sys/unix/rwlock.rs @@ -24,12 +24,6 @@ unsafe impl Sync for RWLock {} impl RWLock { #[inline] - pub unsafe fn new() -> RWLock { - // Might be moved and address is changing it is better to avoid - // initialization of potentially opaque OS data before it landed - RWLOCK_INIT - } - #[inline] pub unsafe fn read(&self) { let r = ffi::pthread_rwlock_rdlock(self.inner.get()); debug_assert_eq!(r, 0); |
