Skip to content

Commit 4a1cccb

Browse files
committed
remove unused test function
1 parent e8c7657 commit 4a1cccb

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

bindings/src/ffi_test_utils.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,6 @@ ffi! {
8686
FFIResult::ok()
8787
}
8888

89-
fn ffi_test_simple_struct_with_function_pointer(
90-
input: Ref<FFITestInputStructWithPtr>,
91-
output: Out<FFITestOutputStructHandle>
92-
) -> FFIResult {
93-
// this test does not work, it seems that calling a function passed by wrapper struct will cause program to crash.
94-
let input_ref = unsafe_block!(" " => input.as_ref());
95-
// input_ref.call();
96-
let input_arc = unsafe_block!(" " => input.as_arc());
97-
// input_arc.call();
98-
// let result = FFITestOutputStruct{ field: input_arc };
99-
// result.field.call();
100-
// unsafe_block!("We know output is not null by wrapper macro. And we know `Out` is writable" => output.init(HandleShared::alloc(result)));
101-
FFIResult::ok()
102-
}
103-
10489
fn ffi_test_release(handle: FFITestOutputStructHandle) -> FFIResult {
10590
unsafe_block!("The upstream caller guarantees the handle will not be accessed after being freed" => FFITestOutputStructHandle::dealloc(handle, |mut handle| {
10691
handle.complete();

0 commit comments

Comments
 (0)