Remove unused option_env!(...) (#13959)

This commit is contained in:
Daniel Marschall
2026-02-03 13:55:34 +01:00
committed by GitHub
parent 5ee9dcf42d
commit 4fa5e99e65

View File

@@ -1072,10 +1072,6 @@ fn get_api_server_(api: String, custom: String) -> String {
if !api.is_empty() { if !api.is_empty() {
return api.to_owned(); 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); let s0 = get_custom_rendezvous_server(custom);
if !s0.is_empty() { if !s0.is_empty() {
let s = crate::increase_port(&s0, -2); 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] #[inline]
pub fn using_public_server() -> bool { 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 { pub struct ThrottledInterval {