The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: remove unused code across multiple modules
Steven Enamakel61f2f2306ec8
diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect.rs b/crates/openhuman-core/src/channels/controllers/ops/connect.rsindex 6e488dcbca..e59e5e3ab8 100644--- a/crates/openhuman-core/src/channels/controllers/ops/connect.rs+++ b/crates/openhuman-core/src/channels/controllers/ops/connect.rs@@ -1,6 +1,5 @@//! Core channel connect/disconnect/status operations.-mod catalog;mod connect_channel;mod disconnect;mod email;@@ -9,8 +8,6 @@ pub(super) mod shared;mod status;mod test_channel;-#[allow(unused_imports)]-pub(crate) use catalog::{describe_channel, list_channels};pub use connect_channel::connect_channel;pub use disconnect::disconnect_channel;#[cfg(test)]diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/catalog.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/catalog.rsdeleted file mode 100644index 2c72d415b2..0000000000--- a/crates/openhuman-core/src/channels/controllers/ops/connect/catalog.rs+++ /dev/null@@ -1,19 +0,0 @@-//! Read-only channel catalog lookups.--use crate::core::Outcome;--use super::super::super::definitions::{- all_channel_definitions, find_channel_definition, ChannelDefinition,-};--/// List all available channel definitions.-pub async fn list_channels() -> Result<Outcome<Vec<ChannelDefinition>>, String> {- Ok(Outcome::new(all_channel_definitions(), vec![]))-}--/// Describe a single channel by id.-pub async fn describe_channel(channel_id: &str) -> Result<Outcome<ChannelDefinition>, String> {- let def = find_channel_definition(channel_id)- .ok_or_else(|| format!("unknown channel: {channel_id}"))?;- Ok(Outcome::new(def, vec![]))-}diff --git a/crates/openhuman-core/src/flows/ops/validation.rs b/crates/openhuman-core/src/flows/ops/validation.rsindex 152196e3be..a09e4298fb 100644--- a/crates/openhuman-core/src/flows/ops/validation.rs+++ b/crates/openhuman-core/src/flows/ops/validation.rs@@ -33,11 +33,6 @@ pub(crate) fn engine_compatibility_errors(.collect()}-/// The nesting cap `graph` declares on its trigger, or the engine default.-pub(crate) fn max_sub_workflow_depth(graph: &WorkflowGraph) -> u64 {- tinyflows::compat::max_sub_workflow_depth(graph)-}-// The refusal code is `tinyflows::compat`'s, re-exported at `ops::` scope// because this module's tests assert on it by name — which is the point of a// stable code, and what keeps a rename upstream a compile error here ratherdiff --git a/crates/openhuman-core/src/flows/store.rs b/crates/openhuman-core/src/flows/store.rsindex 5aaf41e891..7d3bc72d62 100644--- a/crates/openhuman-core/src/flows/store.rs+++ b/crates/openhuman-core/src/flows/store.rs@@ -145,12 +145,6 @@ pub fn kv_set(tinyflows_sqlite::flows::kv_set(&dir(config), namespace, key, value)}-/// Binds [`tinyflows_sqlite::flows::kv_delete`] to this host's catalog directory.-#[inline]-pub fn kv_delete(config: &Config, namespace: &str, key: &str) -> Result<()> {- tinyflows_sqlite::flows::kv_delete(&dir(config), namespace, key)-}-/// Binds [`tinyflows_sqlite::flows::insert_flow_run`] to this host's catalog directory.#[inline]pub fn insert_flow_run(diff --git a/crates/openhuman-core/src/inference/host_runtime/schemas.rs b/crates/openhuman-core/src/inference/host_runtime/schemas.rsindex e96d170037..c916602b49 100644--- a/crates/openhuman-core/src/inference/host_runtime/schemas.rs+++ b/crates/openhuman-core/src/inference/host_runtime/schemas.rs@@ -524,15 +524,6 @@ fn optional_f64(name: &'static str, comment: &'static str) -> FieldSchema {}}-fn optional_u64(name: &'static str, comment: &'static str) -> FieldSchema {- FieldSchema {- name,- ty: TypeSchema::Option(Box::new(TypeSchema::U64)),- comment,- required: false,- }-}-fn json_output(name: &'static str, comment: &'static str) -> FieldSchema {FieldSchema {name,diff --git a/crates/openhuman-core/src/memory/tool_memory/capture.rs b/crates/openhuman-core/src/memory/tool_memory/capture.rsindex 0092db6ebd..ebd3413db7 100644--- a/crates/openhuman-core/src/memory/tool_memory/capture.rs+++ b/crates/openhuman-core/src/memory/tool_memory/capture.rs@@ -223,16 +223,6 @@ impl PostTurnHook for ToolMemoryCaptureHook {}}-/// Helper: emit a [`ToolMemoryRule`] preview without flooding logs with-/// raw user prose.-fn truncate_for_log(body: &str) -> String {- let mut out: String = body.chars().take(80).collect();- if body.chars().count() > 80 {- out.push('…');- }- out-}-/// Best-effort match between a user edict and a tool that ran in the/// turn. We look for the tool name appearing as a word in the edict;/// when several match, the first call's tool wins.