core: remove unused network approval helper

Drop the unused protocol-formatting helper from the core-only branch so clippy does not fail on dead code after the PR split.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Charles Cunningham
2026-03-23 19:41:28 -07:00
parent 13489789bf
commit b45bbe8278

View File

@@ -344,18 +344,6 @@ pub(crate) fn guardian_assessment_action_value(action: &GuardianApprovalRequest)
}
}
fn network_approval_protocol_value(protocol: NetworkApprovalProtocol) -> Value {
Value::String(
match protocol {
NetworkApprovalProtocol::Http => "http",
NetworkApprovalProtocol::Https => "https",
NetworkApprovalProtocol::Socks5Tcp => "socks5_tcp",
NetworkApprovalProtocol::Socks5Udp => "socks5_udp",
}
.to_string(),
)
}
pub(crate) fn guardian_request_id(request: &GuardianApprovalRequest) -> &str {
match request {
GuardianApprovalRequest::Shell { id, .. }