diff --git a/frontend/src/lib/hooks/useBlockAutoSave.svelte.ts b/frontend/src/lib/hooks/useBlockAutoSave.svelte.ts index fd76f3e8..21de5442 100644 --- a/frontend/src/lib/hooks/useBlockAutoSave.svelte.ts +++ b/frontend/src/lib/hooks/useBlockAutoSave.svelte.ts @@ -23,10 +23,6 @@ export function createBlockAutoSave({ saveFn, documentId }: Options) { saveStates.set(blockId, state); } - function getPendingMentions(blockId: string, fallback: PersonMention[]): PersonMention[] { - return pendingMentions.get(blockId) ?? fallback; - } - async function executeSave(blockId: string): Promise { const text = pendingTexts.get(blockId); if (text === undefined) return; @@ -90,12 +86,6 @@ export function createBlockAutoSave({ saveFn, documentId }: Options) { scheduleDebounce(blockId); } - function handleMentionsChange(blockId: string, mentionedPersons: PersonMention[]): void { - pendingMentions.set(blockId, mentionedPersons); - // Mentions changes always accompany text changes from the editor, so the - // text-debounce timer covers them too. - } - function handleBlur(): void { for (const [blockId] of [...debounceTimers]) { clearDebounce(blockId); @@ -150,9 +140,7 @@ export function createBlockAutoSave({ saveFn, documentId }: Options) { return { getSaveState, - getPendingMentions, handleTextChange, - handleMentionsChange, handleBlur, handleRetry, clearBlock,