From 4fa5e99e653c90dd79c5aa2a9ab6df388cc78eea Mon Sep 17 00:00:00 2001 From: Daniel Marschall <28412477+danielmarschall@users.noreply.github.com> Date: Tue, 3 Feb 2026 13:55:34 +0100 Subject: [PATCH] Remove unused option_env!(...) (#13959) --- src/common.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/common.rs b/src/common.rs index 5f8772414..bba453c34 100644 --- a/src/common.rs +++ b/src/common.rs @@ -1072,10 +1072,6 @@ fn get_api_server_(api: String, custom: String) -> String { if !api.is_empty() { return api.to_owned(); } - let api = option_env!("API_SERVER").unwrap_or_default(); - if !api.is_empty() { - return api.into(); - } let s0 = get_custom_rendezvous_server(custom); if !s0.is_empty() { let s = crate::increase_port(&s0, -2); @@ -1737,8 +1733,7 @@ pub fn create_symmetric_key_msg(their_pk_b: [u8; 32]) -> (Bytes, Bytes, secretbo #[inline] pub fn using_public_server() -> bool { - option_env!("RENDEZVOUS_SERVER").unwrap_or("").is_empty() - && crate::get_custom_rendezvous_server(get_option("custom-rendezvous-server")).is_empty() + crate::get_custom_rendezvous_server(get_option("custom-rendezvous-server")).is_empty() } pub struct ThrottledInterval {