delete 20 dead public functions across 12 files
Removed functions with zero callers: parse_timestamp_to_epoch, hash_key, search_weighted_debug, extract_query_terms, format_results, move_to_neighbor, adjust_edge_strength, update_graph_metrics, nearest_to_seeds, nystrom_project, chat_completion_stream, cmd_read, context_message, split_candidates, split_plan_prompt, split_extract_prompt, log_event_pub, log_verbose, rpc_record_hits, memory_definitions. -245 lines. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
b0e852a05f
commit
91eb9c95cc
12 changed files with 0 additions and 245 deletions
|
|
@ -97,16 +97,6 @@ fn log_event(job: &str, event: &str, detail: &str) {
|
|||
jobkit::daemon::event_log::log(&logs_dir(), job, event, detail);
|
||||
}
|
||||
|
||||
/// Public wrapper for logging from other agent modules.
|
||||
pub fn log_event_pub(job: &str, event: &str, detail: &str) {
|
||||
log_event(job, event, detail);
|
||||
}
|
||||
|
||||
/// Verbose log — only written if verbose logging is enabled.
|
||||
pub fn log_verbose(job: &str, event: &str, detail: &str) {
|
||||
jobkit::daemon::event_log::verbose(&crate::config::get().data_dir, job, event, detail);
|
||||
}
|
||||
|
||||
// --- Job functions (direct, no subprocess) ---
|
||||
|
||||
static DAEMON_POOL: std::sync::OnceLock<Arc<jobkit::ResourcePool>> = std::sync::OnceLock::new();
|
||||
|
|
@ -1164,16 +1154,6 @@ pub fn rpc_consolidate() -> Result<(), String> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Record search hits for the given keys (fire-and-forget from memory-search).
|
||||
pub fn rpc_record_hits(keys: &[&str]) -> Result<(), String> {
|
||||
if keys.is_empty() { return Ok(()); }
|
||||
let cmd = format!("record-hits {}", keys.join("\t"));
|
||||
match send_rpc(&cmd) {
|
||||
Some(_) => Ok(()),
|
||||
None => Err("Daemon not running.".into()),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn rpc_run_agent(agent: &str, count: usize) -> Result<(), String> {
|
||||
let cmd = format!("run-agent {} {}", agent, count);
|
||||
match send_rpc(&cmd) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue