Skip to content

Commit

Permalink
Remove now-unused refreshEntry event
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jan 21, 2025
1 parent 3689307 commit ec39418
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions frontend/viewer/src/ProjectView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,6 @@
setTimeout(flushLoadingEntries);
}
function refreshEntry({ entryId }: { entryId: string }): void {
console.log('TODO: Find way to refresh just one entry, the one with ID', entryId);
refreshEntries(); // Killing a fly with a sledgehammer, but it does refresh the entry we want :-)
}
function refreshSpecificEntries({ entryIds }: { entryIds: string[] }): void {
console.log('TODO: Find way to refresh just the following entry IDs', entryIds);
refreshEntries(); // Killing a fly with a sledgehammer, but it does refresh the entries we want
Expand Down Expand Up @@ -394,7 +389,6 @@
$selectedEntry = $selectedEntry;
$entries = $entries;
}}
on:refreshEntry={e => refreshEntry(e.detail)}
on:refreshEntries={e => refreshSpecificEntries(e.detail)}
on:delete={onEntryDeleted} />
{:else}
Expand Down
1 change: 0 additions & 1 deletion frontend/viewer/src/lib/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
const dispatch = createEventDispatcher<{
delete: { entry: IEntry };
change: { entry: IEntry };
refreshEntry: { entryId: IEntry['id'] };
refreshEntries: { entryIds: IEntry['id'][] };
}>();
Expand Down

0 comments on commit ec39418

Please sign in to comment.