base: unix: remove unused IntoRawDescriptor for PollContext

PollContext is wrapped by the platform-agnostic WaitContext, which does
not support IntoRawDescriptor, so nobody should be using this.

BUG=None
TEST=cargo build

Change-Id: I5d931d20cb3d0a8f42cc1e625d35df4047e45c7d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3687058
Reviewed-by: Anton Romanov <romanton@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2022-06-03 14:45:12 -07:00 committed by Chromeos LUCI
parent f0f10c4209
commit 25f08902ff

View file

@ -14,8 +14,7 @@ use smallvec::SmallVec;
use super::{errno_result, Result};
use crate::{
AsRawDescriptor, EventToken, EventType, FromRawDescriptor, IntoRawDescriptor, RawDescriptor,
TriggeredEvent,
AsRawDescriptor, EventToken, EventType, FromRawDescriptor, RawDescriptor, TriggeredEvent,
};
const POLL_CONTEXT_MAX_EVENTS: usize = 16;
@ -250,12 +249,6 @@ impl<T: EventToken> AsRawDescriptor for PollContext<T> {
}
}
impl<T: EventToken> IntoRawDescriptor for PollContext<T> {
fn into_raw_descriptor(self) -> RawDescriptor {
self.epoll_ctx.into_raw_descriptor()
}
}
#[cfg(test)]
mod tests {
use super::{super::Event, *};