From d269f9006de6b5a5f4490d91d90368c78a0c3794 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 10 Apr 2026 16:14:43 -0400 Subject: [PATCH] delete dead code --- src/cli/graph.rs | 2 +- src/main.rs | 4 ++-- src/subconscious/prompts.rs | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cli/graph.rs b/src/cli/graph.rs index 0bc391e..b33d2ad 100644 --- a/src/cli/graph.rs +++ b/src/cli/graph.rs @@ -307,7 +307,7 @@ pub fn cmd_trace(key: &[String]) -> Result<(), String> { 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()?; // Step 1: find all non-deleted nodes matching the term diff --git a/src/main.rs b/src/main.rs index ede6690..d688f13 100644 --- a/src/main.rs +++ b/src/main.rs @@ -743,8 +743,8 @@ impl Run for GraphCmd { Self::Trace { key } => cli::graph::cmd_trace(&key), Self::Communities { top_n, min_size } => cli::graph::cmd_communities(top_n, min_size), Self::Overview => cli::graph::cmd_graph(), - Self::Organize { term, threshold, key_only, anchor } - => cli::graph::cmd_organize(&term, threshold, key_only, anchor), + Self::Organize { term, key_only, anchor, .. } + => cli::graph::cmd_organize(&term, key_only, anchor), } } } diff --git a/src/subconscious/prompts.rs b/src/subconscious/prompts.rs index 93862c5..422e863 100644 --- a/src/subconscious/prompts.rs +++ b/src/subconscious/prompts.rs @@ -346,7 +346,6 @@ pub fn consolidation_batch(store: &Store, count: usize, auto: bool) -> Result<() return Ok(()); } - let graph = store.build_graph(); let items = replay_queue(store, count); if items.is_empty() {