Skip to content

Commit fdf6b6f

Browse files
committed
Remove unused struct OsOpaqueIpcChannel.
1 parent 46b4a8c commit fdf6b6f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

samply-mac-preload/src/mach_ipc.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -441,18 +441,6 @@ impl OsIpcChannel {
441441
}
442442
}
443443

444-
#[derive(PartialEq, Eq, Debug)]
445-
pub struct OsOpaqueIpcChannel {
446-
port: mach_port_t,
447-
}
448-
449-
impl Drop for OsOpaqueIpcChannel {
450-
fn drop(&mut self) {
451-
// Make sure we don't leak!
452-
debug_assert!(self.port == MACH_PORT_NULL);
453-
}
454-
}
455-
456444
unsafe fn setup_receive_buffer(buffer: &mut [u8], port_name: mach_port_t) {
457445
let message = &buffer[0] as *const u8 as *mut mach_msg_header_t;
458446
(*message).msgh_local_port = port_name;

0 commit comments

Comments
 (0)