base: remove wrap_descriptor

After the preceding patch series, it is now unused.

BUG=None
TEST=tools/presubmit

Change-Id: I8639357db101517de830ef4e3e33bc40980391b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3572771
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Noah Gold <nkgold@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2022-04-05 15:41:41 -07:00 committed by Chromeos LUCI
parent fa0ffe7e81
commit 3894aa042a

View file

@ -61,12 +61,6 @@ pub use crate::descriptor::{
}; };
pub use platform::*; pub use platform::*;
/// Wraps an AsRawDescriptor in the simple Descriptor struct, which
/// has AsRawFd methods for interfacing with sys_util
pub fn wrap_descriptor(descriptor: &dyn AsRawDescriptor) -> Descriptor {
Descriptor(descriptor.as_raw_descriptor())
}
/// Verifies that |raw_descriptor| is actually owned by this process and duplicates it /// Verifies that |raw_descriptor| is actually owned by this process and duplicates it
/// to ensure that we have a unique handle to it. /// to ensure that we have a unique handle to it.
#[cfg(unix)] #[cfg(unix)]