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:
parent
3baf160c88
commit
0024172be6
1 changed files with 0 additions and 13 deletions
|
|
@ -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
|
||||
function setupFolderMultiSelect() {
|
||||
let lastSelectedGroupingIndex = -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue