refactor(archive): remove unused debounce helper

archive/js/events.js defined a 10-line debounce function inside the
events IIFE that was never called anywhere in archive/. Dead code,
confirmed by grepping the whole archive/ tree for debounce(.

The plan was to extract debounce to shared/util.js so this file and
mdedit/js/utils.js could share one implementation, but mdedit's debounce
has only one caller (editor.js) so a shared abstraction would be
premature. Just delete the dead copy.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZDDC 2026-05-09 18:48:57 -05:00
parent 3baf160c88
commit 0024172be6

View file

@ -223,19 +223,6 @@
} }
} }
// Utility: Debounce function
function debounce(func, wait) {
let timeout;
return function executedFunction(...args) {
const later = () => {
clearTimeout(timeout);
func(...args);
};
clearTimeout(timeout);
timeout = setTimeout(later, wait);
};
}
// Multi-select handling for folder lists // Multi-select handling for folder lists
function setupFolderMultiSelect() { function setupFolderMultiSelect() {
let lastSelectedGroupingIndex = -1; let lastSelectedGroupingIndex = -1;