mirror of
https://github.com/openai/codex.git
synced 2026-10-27 18:48:37 +00:00
Remove the unused network proxy loader (#33446)
## What changed - Remove the standalone network proxy config loader, its mtime-based reloader, and their tests. - Remove the helper exports and MITM action-reference validator used only by that loader. GitOrigin-RevId: 60895fb4e3461e8c3f19db70869050410a4f5f07
This commit is contained in:
@@ -453,29 +453,6 @@ impl NetworkMitmToml {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn validate_action_references(
|
||||
&self,
|
||||
actions_by_name: &IndexMap<String, NetworkMitmActionToml>,
|
||||
) -> Result<(), String> {
|
||||
self.validate_action_definitions()?;
|
||||
|
||||
let Some(hooks) = self.hooks.as_ref() else {
|
||||
return Ok(());
|
||||
};
|
||||
|
||||
for (hook_name, hook) in hooks {
|
||||
for action_name in &hook.action {
|
||||
if !actions_by_name.contains_key(action_name) {
|
||||
return Err(format!(
|
||||
"network.mitm.hooks.{hook_name}.action references undefined action `{action_name}`"
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn to_runtime_hooks(
|
||||
&self,
|
||||
actions_by_name: Option<&IndexMap<String, NetworkMitmActionToml>>,
|
||||
|
||||
Reference in New Issue
Block a user