mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-16 22:20:51 +01:00
Remove unused function parameters
Removed unused parameters: - allowed_origin from parse_extension_info_from_path in protocol.rs - app_handle from resolve_path_pattern in filesystem/core.rs
This commit is contained in:
@ -337,7 +337,7 @@ pub fn extension_protocol_handler(
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// No base64 host - use path-based parsing (for localhost/Android/Windows)
|
// No base64 host - use path-based parsing (for localhost/Android/Windows)
|
||||||
parse_extension_info_from_path(path_str, origin, uri_ref, referer, allowed_origin)?
|
parse_extension_info_from_path(path_str, origin, uri_ref, referer)?
|
||||||
};
|
};
|
||||||
|
|
||||||
// Construct asset path from remaining segments
|
// Construct asset path from remaining segments
|
||||||
@ -613,7 +613,6 @@ fn parse_extension_info_from_path(
|
|||||||
origin: &str,
|
origin: &str,
|
||||||
uri_ref: &Uri,
|
uri_ref: &Uri,
|
||||||
referer: &str,
|
referer: &str,
|
||||||
allowed_origin: &str,
|
|
||||||
) -> Result<(ExtensionInfo, Vec<String>), Box<dyn std::error::Error>> {
|
) -> Result<(ExtensionInfo, Vec<String>), Box<dyn std::error::Error>> {
|
||||||
let mut segments_iter = path_str.split('/').filter(|s| !s.is_empty());
|
let mut segments_iter = path_str.split('/').filter(|s| !s.is_empty());
|
||||||
|
|
||||||
|
|||||||
@ -143,7 +143,6 @@ fn validate_path_pattern(pattern: &str) -> Result<(), ExtensionError> {
|
|||||||
/// Resolves a path pattern to actual filesystem paths using Tauri's BaseDirectory
|
/// Resolves a path pattern to actual filesystem paths using Tauri's BaseDirectory
|
||||||
pub fn resolve_path_pattern(
|
pub fn resolve_path_pattern(
|
||||||
pattern: &str,
|
pattern: &str,
|
||||||
app_handle: &tauri::AppHandle,
|
|
||||||
) -> Result<(String, String), ExtensionError> {
|
) -> Result<(String, String), ExtensionError> {
|
||||||
let (base_var, relative_path) = if let Some(slash_pos) = pattern.find('/') {
|
let (base_var, relative_path) = if let Some(slash_pos) = pattern.find('/') {
|
||||||
(&pattern[..slash_pos], &pattern[slash_pos + 1..])
|
(&pattern[..slash_pos], &pattern[slash_pos + 1..])
|
||||||
|
|||||||
Reference in New Issue
Block a user