Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(search): remove unused exact_role_order helper

Steven Enamakelbf18986cf762
diff --git a/crates/openhuman-core/src/search/providers.rs b/crates/openhuman-core/src/search/providers.rs
index bdc9f8768f..f205651f40 100644
--- a/crates/openhuman-core/src/search/providers.rs
+++ b/crates/openhuman-core/src/search/providers.rs
@@ -141,21 +141,6 @@ pub fn role_order(config: &Config, role: Role) -> Vec<String> {
.collect()
}
-/// The configured provider order for `role` with no default fallback: an
-/// unset or empty role stays empty. Used by direct profiles, whose operator
-/// fixes exactly which providers serve which role.
-pub fn exact_role_order(config: &Config, role: Role) -> Vec<String> {
- config
- .search
- .roles
- .get(role_key(role))
- .into_iter()
- .flatten()
- .filter(|provider| provider_roles(provider).contains(&role))
- .cloned()
- .collect()
-}
-
/// Usable providers for `role`, in serving order. The first one answers; the
/// rest are fallbacks.
pub fn effective_role_providers(