Skip to content

Commit

Permalink
Remove some dead Rust code (#44814)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmb3 authored Jul 31, 2024
1 parent e1539ab commit 3c2dbf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions lib/srv/desktop/rdp/rdpclient/src/client/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
//! managed by Go).
//!
//! In practice this primarily means ensuring that any such global, static
//! structures that might be accessed directly by a call from go are [`Send`]
//! + [`Sync`] and thus are only mutated when locked. See [`assert_send_sync`]
//! structures that might be accessed directly by a call from go are `Send + Sync`
//! and thus are only mutated when locked. See `assert_send_sync`
//! below for an example of how this is enforced.
use super::ClientHandle;
Expand Down
13 changes: 0 additions & 13 deletions lib/srv/desktop/rdp/rdpclient/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,19 +486,6 @@ pub enum CGODisconnectCode {
DisconnectCodeServer = 2,
}

#[repr(C)]
pub struct CGOReadRdpOutputReturns {
user_message: *const c_char,
disconnect_code: CGODisconnectCode,
err_code: CGOErrCode,
}

#[repr(C)]
pub struct CGOClientOrError {
client: u64,
err: CGOErrCode,
}

/// CGOMousePointerEvent is a CGO-compatible version of PointerEvent that we pass back to Go.
/// PointerEvent is a mouse move or click update from the user.
#[repr(C)]
Expand Down

0 comments on commit 3c2dbf0

Please sign in to comment.