cleanup: drop dead ApiClient::stream_completion wrapper, silence dmn_tick

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 <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-17 16:23:59 -04:00
parent d4331e80f5
commit 43e06daa5b
2 changed files with 1 additions and 10 deletions

View file

@ -73,15 +73,6 @@ impl ApiClient {
}
}
pub(crate) fn stream_completion(
&self,
prompt_tokens: &[u32],
sampling: SamplingParams,
priority: Option<i32>,
) -> (mpsc::UnboundedReceiver<StreamToken>, AbortOnDrop) {
self.stream_completion_mm(prompt_tokens, &[], sampling, priority)
}
pub(crate) fn stream_completion_mm(
&self,
prompt_tokens: &[u32],

View file

@ -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;
}