delete dead code

This commit is contained in:
Kent Overstreet 2026-04-10 16:14:43 -04:00
parent 1cf51876a8
commit d269f9006d
3 changed files with 3 additions and 4 deletions

View file

@ -307,7 +307,7 @@ pub fn cmd_trace(key: &[String]) -> Result<(), String> {
Ok(()) Ok(())
} }
pub fn cmd_organize(term: &str, threshold: f32, key_only: bool, create_anchor: bool) -> Result<(), String> { pub fn cmd_organize(term: &str, key_only: bool, create_anchor: bool) -> Result<(), String> {
let mut store = store::Store::load()?; let mut store = store::Store::load()?;
// Step 1: find all non-deleted nodes matching the term // Step 1: find all non-deleted nodes matching the term

View file

@ -743,8 +743,8 @@ impl Run for GraphCmd {
Self::Trace { key } => cli::graph::cmd_trace(&key), Self::Trace { key } => cli::graph::cmd_trace(&key),
Self::Communities { top_n, min_size } => cli::graph::cmd_communities(top_n, min_size), Self::Communities { top_n, min_size } => cli::graph::cmd_communities(top_n, min_size),
Self::Overview => cli::graph::cmd_graph(), Self::Overview => cli::graph::cmd_graph(),
Self::Organize { term, threshold, key_only, anchor } Self::Organize { term, key_only, anchor, .. }
=> cli::graph::cmd_organize(&term, threshold, key_only, anchor), => cli::graph::cmd_organize(&term, key_only, anchor),
} }
} }
} }

View file

@ -346,7 +346,6 @@ pub fn consolidation_batch(store: &Store, count: usize, auto: bool) -> Result<()
return Ok(()); return Ok(());
} }
let graph = store.build_graph();
let items = replay_queue(store, count); let items = replay_queue(store, count);
if items.is_empty() { if items.is_empty() {