From aafb20b746dc650e5cd75f1f00409b85363676c8 Mon Sep 17 00:00:00 2001 From: Jake Lyell Date: Sun, 4 Jan 2026 15:50:10 +1100 Subject: [PATCH] Clean up no longer used code --- src/network/html/FilesPage.html | 43 --------------------------------- 1 file changed, 43 deletions(-) diff --git a/src/network/html/FilesPage.html b/src/network/html/FilesPage.html index 3bff3f9b..a1b95663 100644 --- a/src/network/html/FilesPage.html +++ b/src/network/html/FilesPage.html @@ -742,8 +742,6 @@

Are you sure you want to delete:

- - @@ -840,7 +838,6 @@ let folderPath = currentPath; if (!folderPath.endsWith("/")) folderPath += "/"; folderPath += file.name; - fileTableContent += ''; fileTableContent += ``; fileTableContent += `📁${escapeHtml(file.name)}FOLDER`; @@ -904,44 +901,6 @@ let failedUploadsGlobal = []; -/** - * Generic function to process items sequentially with progress updates - * @param {Array} items - Array of items to process - * @param {Function} processItem - Function to process each item, returns a Promise - * @param {Function} updateProgress - Function to update progress UI - * @param {Function} onComplete - Function called when all items are processed - * @param {String} itemType - Type of items being processed (for display purposes) - */ -async function processItemsSequentially(items, processItem, updateProgress, onComplete, itemType = 'item') { - let currentIndex = 0; - const failedItems = []; - - async function processNext() { - if (currentIndex >= items.length) { - // All items processed - onComplete(failedItems); - return; - } - - const item = items[currentIndex]; - updateProgress(item, currentIndex, items.length, 'in-progress'); - - try { - await processItem(item, currentIndex); - // Success - move to next - currentIndex++; - processNext(); - } catch (error) { - // Failure - track it and continue - failedItems.push({ item, error: error.message || 'Unknown error' }); - currentIndex++; - processNext(); - } - } - - processNext(); -} - // Checkbox management functions function toggleSelectAll(checkbox) { const allCheckboxes = document.querySelectorAll('.file-checkbox'); @@ -1212,8 +1171,6 @@ function deleteSelectedFiles() { document.getElementById('deleteItemName').textContent = (isFolder ? '📁 ' : '📄 ') + name; document.getElementById('deleteItemName').style.display = 'block'; document.getElementById('deleteItemsList').style.display = 'none'; - document.getElementById('deleteItemPath').value = path; - document.getElementById('deleteItemType').value = isFolder ? 'folder' : 'file'; document.getElementById('deleteModal').classList.add('open'); }