Skip to content

Commit de415e8

Browse files
committed
Remove unused copied waker function
1 parent dd2ab18 commit de415e8

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

wgpu/src/api/device.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -715,23 +715,6 @@ mod waker {
715715
RawWaker::new(null(), &NOOP_WAKER_VTABLE)
716716
}
717717

718-
/// Create a new [`Waker`] which does
719-
/// nothing when `wake()` is called on it.
720-
///
721-
/// # Examples
722-
///
723-
/// ```
724-
/// use futures::task::noop_waker;
725-
/// let waker = noop_waker();
726-
/// waker.wake();
727-
/// ```
728-
#[inline]
729-
#[allow(unused)]
730-
pub fn noop_waker() -> Waker {
731-
// FIXME: Since 1.46.0 we can use transmute in consts, allowing this function to be const.
732-
unsafe { Waker::from_raw(noop_raw_waker()) }
733-
}
734-
735718
/// Get a static reference to a [`Waker`] which
736719
/// does nothing when `wake()` is called on it.
737720
///

0 commit comments

Comments
 (0)