mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
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:
@@ -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, .. }
|
||||
|
||||
Reference in New Issue
Block a user