From 43e06daa5ba39f672bba27e5690673db76ab5d36 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 17 Apr 2026 16:23:59 -0400 Subject: [PATCH] cleanup: drop dead ApiClient::stream_completion wrapper, silence dmn_tick MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit stream_completion was a thin wrapper around stream_completion_mm (just passing an empty image list); the last caller switched to _mm directly when learn's generate_alternate gained image support. Delete the wrapper — callers can pass `&[]` if they have no images. MindState::dmn_tick has been sitting unused (called only from a commented-out block in the Mind loop). Rename to _dmn_tick so the compiler stops warning; Kent may uncomment the call path later. Co-Authored-By: Proof of Concept --- src/agent/api/mod.rs | 9 --------- src/mind/mod.rs | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/agent/api/mod.rs b/src/agent/api/mod.rs index 649d95c..8c03bd4 100644 --- a/src/agent/api/mod.rs +++ b/src/agent/api/mod.rs @@ -73,15 +73,6 @@ impl ApiClient { } } - pub(crate) fn stream_completion( - &self, - prompt_tokens: &[u32], - sampling: SamplingParams, - priority: Option, - ) -> (mpsc::UnboundedReceiver, AbortOnDrop) { - self.stream_completion_mm(prompt_tokens, &[], sampling, priority) - } - pub(crate) fn stream_completion_mm( &self, prompt_tokens: &[u32], diff --git a/src/mind/mod.rs b/src/mind/mod.rs index f526b10..f1ddb54 100644 --- a/src/mind/mod.rs +++ b/src/mind/mod.rs @@ -326,7 +326,7 @@ impl MindState { } /// DMN tick — returns a prompt and target if we should run a turn. - fn dmn_tick(&mut self) -> Option<(String, StreamTarget)> { + fn _dmn_tick(&mut self) -> Option<(String, StreamTarget)> { if matches!(self.dmn, subconscious::State::Paused | subconscious::State::Off) { return None; }