diff --git a/apps/desktop/desktop_native/chromium_importer/src/chromium/platform/macos.rs b/apps/desktop/desktop_native/chromium_importer/src/chromium/platform/macos.rs index 8f8c58b285f..a5847c5ebfc 100644 --- a/apps/desktop/desktop_native/chromium_importer/src/chromium/platform/macos.rs +++ b/apps/desktop/desktop_native/chromium_importer/src/chromium/platform/macos.rs @@ -66,19 +66,6 @@ impl ScopedBrowserAccess { browser_name: browser_name.to_string(), }) } - - /// First requests access to browser directory and then ensures access is still usable - pub fn request_and_start(browser_name: &str) -> Result { - Self::request_only(browser_name)?; - Self::resume(browser_name) - } - - pub fn has_stored_access(browser_name: &str) -> bool { - let Ok(c_name) = CString::new(browser_name) else { - return false; - }; - unsafe { hasStoredBrowserAccess(c_name.as_ptr()) } - } } #[cfg(feature = "sandbox")] diff --git a/apps/desktop/desktop_native/napi/src/lib.rs b/apps/desktop/desktop_native/napi/src/lib.rs index 06aaadf5f25..38514ee8cbc 100644 --- a/apps/desktop/desktop_native/napi/src/lib.rs +++ b/apps/desktop/desktop_native/napi/src/lib.rs @@ -1192,6 +1192,7 @@ pub mod chromium_importer { } #[napi] + #[allow(unused_variables)] pub fn request_browser_access(browser: String) -> napi::Result<()> { #[cfg(all(target_os = "macos", feature = "sandbox"))] { diff --git a/apps/desktop/desktop_native/objc/README.md b/apps/desktop/desktop_native/objc/README.md index f5f323fda66..6dc7ece8fc6 100644 --- a/apps/desktop/desktop_native/objc/README.md +++ b/apps/desktop/desktop_native/objc/README.md @@ -27,8 +27,4 @@ in `apps/desktop/desktop_native/napi/src/lib.rs` which returns an `Ok` unit vari - `resume()` is responsible for determining if a security scoped bookmark exists and is valid, if so, it will be used to access the browser directory. -- `request_and_start()` encapsulates both of the functions described above into a single function call. - -- `has_stored_access()` and `drop()` are self-explanatory helper functions. - - See directory `apps/desktop/desktop_native/objc/src/native/chromium_importer` for the native Objective-C and Swift code. Instead of removing debug output I've commented out `NSLog` statements since they may be useful in the future. \ No newline at end of file