diff --git a/crates/call/src/call.rs b/crates/call/src/call.rs index 1153259932..6b06d04375 100644 --- a/crates/call/src/call.rs +++ b/crates/call/src/call.rs @@ -14,7 +14,6 @@ pub use room::Room; use std::sync::Arc; pub fn init(client: Arc, user_store: ModelHandle, cx: &mut MutableAppContext) { - live_kit_client::displays(); let active_call = cx.add_model(|cx| ActiveCall::new(client, user_store, cx)); cx.set_global(active_call); } diff --git a/crates/live_kit_client/LiveKitBridge/Sources/LiveKitBridge/LiveKitBridge.swift b/crates/live_kit_client/LiveKitBridge/Sources/LiveKitBridge/LiveKitBridge.swift index 9a21b17800..f9380d747e 100644 --- a/crates/live_kit_client/LiveKitBridge/Sources/LiveKitBridge/LiveKitBridge.swift +++ b/crates/live_kit_client/LiveKitBridge/Sources/LiveKitBridge/LiveKitBridge.swift @@ -155,19 +155,3 @@ public func LKDisplaySources(data: UnsafeRawPointer, callback: @escaping @conven callback(data, nil, error.localizedDescription as CFString) } } - -@_cdecl("LKDisplays") -public func LKDisplays() { - if #available(macOS 12.3, *) { - Task.init { - let content = try await SCShareableContent.current - print(content.displays.count) - } - -// SCShareableContent.getWithCompletionHandler { content, error in -// print(content!.displays.count) -// } - } else { - print("OOOPS") - } -} diff --git a/crates/live_kit_client/src/prod.rs b/crates/live_kit_client/src/prod.rs index a0879f016a..35a5705a24 100644 --- a/crates/live_kit_client/src/prod.rs +++ b/crates/live_kit_client/src/prod.rs @@ -62,7 +62,6 @@ extern "C" { fn LKVideoTrackAddRenderer(track: *const c_void, renderer: *const c_void); fn LKRemoteVideoTrackGetSid(track: *const c_void) -> CFStringRef; - fn LKDisplays(); fn LKDisplaySources( callback_data: *mut c_void, callback: extern "C" fn( @@ -74,12 +73,6 @@ extern "C" { fn LKCreateScreenShareTrackForDisplay(display: *const c_void) -> *const c_void; } -pub fn displays() { - unsafe { - LKDisplays(); - } -} - pub type Sid = String; pub struct Room { diff --git a/crates/live_kit_client/src/test.rs b/crates/live_kit_client/src/test.rs index e68bff1bf9..23076e13a5 100644 --- a/crates/live_kit_client/src/test.rs +++ b/crates/live_kit_client/src/test.rs @@ -9,10 +9,6 @@ use media::core_video::CVImageBuffer; use parking_lot::Mutex; use std::{future::Future, sync::Arc}; -pub fn displays() { - panic!() -} - lazy_static! { static ref SERVERS: Mutex>> = Default::default(); }