From 85b5f74043793a261a8f1c300a3cba7cf08a4238 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 8 Jun 2022 10:34:42 +0200 Subject: [PATCH] remove unneeded code --- library/std/src/sys/hermit/condvar.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/std/src/sys/hermit/condvar.rs b/library/std/src/sys/hermit/condvar.rs index 46f45b1977173..3f00160e55a25 100644 --- a/library/std/src/sys/hermit/condvar.rs +++ b/library/std/src/sys/hermit/condvar.rs @@ -24,11 +24,6 @@ impl Condvar { Condvar { counter: AtomicUsize::new(0), sem1: ptr::null(), sem2: ptr::null() } } - pub unsafe fn init(&mut self) { - let _ = abi::sem_init(&mut self.sem1 as *mut *const c_void, 0); - let _ = abi::sem_init(&mut self.sem2 as *mut *const c_void, 0); - } - pub unsafe fn notify_one(&self) { if self.counter.load(SeqCst) > 0 { self.counter.fetch_sub(1, SeqCst);