mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 12:35:26 +00:00
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:
parent
fa0ffe7e81
commit
3894aa042a
1 changed files with 0 additions and 6 deletions
|
@ -61,12 +61,6 @@ pub use crate::descriptor::{
|
|||
};
|
||||
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
|
||||
/// to ensure that we have a unique handle to it.
|
||||
#[cfg(unix)]
|
||||
|
|
Loading…
Reference in a new issue