Skip to content

Commit

Permalink
fix: Remove unused BoxCastPtr::set_mut_ptr in the C bindings (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
DataTriny committed Apr 4, 2024
1 parent 9baebdc commit 3db0fdb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions bindings/c/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,6 @@ pub(crate) trait BoxCastPtr: CastPtr + Sized {
fn to_nullable_mut_ptr(src: Option<Self::RustType>) -> *mut Self {
src.map_or_else(std::ptr::null_mut, Self::to_mut_ptr)
}

fn set_mut_ptr(dst: *mut *mut Self, src: Self::RustType) {
unsafe {
*dst = Self::to_mut_ptr(src);
}
}
}

/// Turn a raw const pointer into a reference. This is a generic function
Expand Down

0 comments on commit 3db0fdb

Please sign in to comment.