refactor: remove unused review state and duplicate storage reads

This commit is contained in:
Valdemar Lorenzen
2026-10-16 18:49:28 +02:00
parent 66250d6c40
commit 14abdfd2cf
6 changed files with 36 additions and 59 deletions
-11
View File
@@ -2910,17 +2910,6 @@ fn sqlite_reviews_autosave_restore_select_and_keep_exports_independent() {
let mut choosing = editor();
choosing.set_review_directory(storage);
historical_diff(&mut choosing, &root, vec!["old".into()], vec!["new".into()]);
assert_eq!(
choosing
.workspace_diff()
.unwrap()
.local_review
.choices
.iter()
.map(|(id, _)| *id)
.collect::<std::collections::BTreeSet<_>>(),
std::collections::BTreeSet::from([id, second_id])
);
choosing.handle(Input::Enter);
assert_eq!(
choosing