From d10667906b354996d997b4cf65d7c132e81b1363 Mon Sep 17 00:00:00 2001 From: Peter Jankuliak Date: Fri, 12 Apr 2024 12:53:37 +0200 Subject: [PATCH] Remove the FFI session_release function --- ffi/src/lib.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ffi/src/lib.rs b/ffi/src/lib.rs index 99c2ab556..d3893e6a6 100644 --- a/ffi/src/lib.rs +++ b/ffi/src/lib.rs @@ -85,16 +85,6 @@ pub unsafe extern "C" fn session_grab(context: *mut (), callback: Callback) -> S session::grab_shared(sender).into() } -/// Destroys state corresponding to this session handle but leaves the state shared with other -/// session intact. -/// -/// After this function call, the callback passed to `session_create` will no longer be executed -/// and thus the `context` pointer (also passed to `session_create`) can be freed. -#[no_mangle] -pub unsafe extern "C" fn session_release(session: SessionHandle) { - session.release(); -} - /// Closes the Ouisync session (common C-like API). /// /// Also gracefully disconnects from all peers and asynchronously waits for the disconnections to