Dead-Code Cleaning

This commit is contained in:
Alexey
2026-10-31 12:19:16 +03:00
parent 61afd6c702
commit cecc8df758
40 changed files with 104 additions and 306 deletions
+1
View File
@@ -1,6 +1,7 @@
use super::*;
/// Completes legacy synchronous loads without performing hostname resolution.
#[cfg(test)]
pub(super) fn load_source_graph(graph: ConfigSourceGraph) -> Result<LoadedConfig> {
finish(parse_source_graph(graph)?)
}
+2
View File
@@ -128,6 +128,7 @@ pub(in crate::config::load) fn rebuild(config: &mut ProxyConfig) -> Result<()> {
group_id: vhost_idx,
profiles: shared_profiles,
}),
#[cfg(test)]
host: String::new(),
base: if vhost.base_path.is_empty() {
"/".to_string()
@@ -155,6 +156,7 @@ pub(in crate::config::load) fn rebuild(config: &mut ProxyConfig) -> Result<()> {
host.clone(),
Arc::new(WebRuntimeVhost {
wildcard: None,
#[cfg(test)]
host: host.clone(),
base: if vhost.base_path.is_empty() {
"/".to_string()