From 58a135e297a8dfb9b0415ea0a9cd7bd1f018b8eb Mon Sep 17 00:00:00 2001 From: Drew Newberry Date: Wed, 11 Mar 2026 21:20:02 -0700 Subject: [PATCH] fix(bootstrap): remove dead pick_available_port function --- crates/navigator-bootstrap/src/lib.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/crates/navigator-bootstrap/src/lib.rs b/crates/navigator-bootstrap/src/lib.rs index 5e1fae44d..e037f111d 100644 --- a/crates/navigator-bootstrap/src/lib.rs +++ b/crates/navigator-bootstrap/src/lib.rs @@ -80,15 +80,6 @@ impl RemoteOptions { /// Default host port that maps to the k3s `NodePort` (30051) for the gateway. pub const DEFAULT_GATEWAY_PORT: u16 = 8080; -/// Find a random available TCP port by binding to port 0. -/// -/// Binds to `127.0.0.1:0` and returns the OS-assigned port. -pub fn pick_available_port() -> Result { - let listener = std::net::TcpListener::bind("127.0.0.1:0").into_diagnostic()?; - let port = listener.local_addr().into_diagnostic()?.port(); - Ok(port) -} - #[derive(Debug, Clone)] pub struct DeployOptions { pub name: String,