refactor(control): remove unnecessary small function

This commit is contained in:
E44
2026-01-19 20:28:07 +01:00
parent a38827da54
commit 8b878b183b
2 changed files with 4 additions and 15 deletions
@@ -395,15 +395,6 @@ export async function run_for_selected_files_on_selected_displays(
} }
} }
export async function create_folder_on_all_selected_displays(
folder_name: string,
path: string,
selected_display_ids: string[]
): Promise<void> {
const path_with_folder_name = (path += folder_name + '/');
await create_path_on_all_selected_displays(path_with_folder_name, selected_display_ids);
}
export async function create_path_on_all_selected_displays( export async function create_path_on_all_selected_displays(
path: string, path: string,
selected_display_ids: string[] selected_display_ids: string[]
+4 -6
View File
@@ -22,7 +22,8 @@
run_for_selected_files_on_selected_displays, run_for_selected_files_on_selected_displays,
update_current_folder_on_selected_displays, update_current_folder_on_selected_displays,
get_displays_where_path_not_exists, get_displays_where_path_not_exists,
create_folder_on_all_selected_displays create_path_on_all_selected_displays
} from '$lib/ts/stores/files'; } from '$lib/ts/stores/files';
import { slide } from 'svelte/transition'; import { slide } from 'svelte/transition';
import InodeElement from '../lib/components/InodeElement.svelte'; import InodeElement from '../lib/components/InodeElement.svelte';
@@ -89,11 +90,8 @@
async function create_new_folder() { async function create_new_folder() {
popup_close_function(); popup_close_function();
await create_folder_on_all_selected_displays( const path_with_folder_name = ($current_file_path += current_name.trim() + '/');
current_name.trim(), await create_path_on_all_selected_displays(path_with_folder_name, $selected_display_ids);
$current_file_path,
$selected_display_ids
);
await update_current_folder_on_selected_displays(); await update_current_folder_on_selected_displays();
} }