Skip to content

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

refactor(approval): remove unused clear_request_route method

Steven Enamakel96aa011559a6
diff --git a/crates/openhuman-core/src/security/approval/gate_state.rs b/crates/openhuman-core/src/security/approval/gate_state.rs
index 938a793e99..e60f4c13ad 100644
--- a/crates/openhuman-core/src/security/approval/gate_state.rs
+++ b/crates/openhuman-core/src/security/approval/gate_state.rs
@@ -199,15 +199,6 @@ impl ApprovalGate {
self.request_routes.lock().remove(request_id)
}
- /// Drop the routing correlation for `request_id` without reading it —
- /// used on the caller-bound-abandon path, which leaves the row pending
- /// and must not consume the route a later real decision still needs...
- /// except the abandon path removes the routing precisely because no
- /// later decision from THIS process will use it (see `WaiterGuard`).
- pub(super) fn clear_request_route(&self, request_id: &str) {
- self.request_routes.lock().remove(request_id);
- }
-
fn evict_waiter(&self, request_id: &str) {
let mut waiters = self.waiters.lock();
waiters.remove(request_id);