Skip to content

Commit 85b5f74

Browse files
committed
remove unneeded code
1 parent 47aee31 commit 85b5f74

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

library/std/src/sys/hermit/condvar.rs

-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ impl Condvar {
2424
Condvar { counter: AtomicUsize::new(0), sem1: ptr::null(), sem2: ptr::null() }
2525
}
2626

27-
pub unsafe fn init(&mut self) {
28-
let _ = abi::sem_init(&mut self.sem1 as *mut *const c_void, 0);
29-
let _ = abi::sem_init(&mut self.sem2 as *mut *const c_void, 0);
30-
}
31-
3227
pub unsafe fn notify_one(&self) {
3328
if self.counter.load(SeqCst) > 0 {
3429
self.counter.fetch_sub(1, SeqCst);

0 commit comments

Comments
 (0)