From cfe3dbaff24b5ae433b3203d69c7e9bceb4e1ccc Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Nov 2026 16:37:46 +0000 Subject: config: no lookup of the node's options by name alone Options are looked up in the table at hand (`spec_in`), the node's or the party client's. --- src/config/mod.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/config') diff --git a/src/config/mod.rs b/src/config/mod.rs index 533b44c..710376d 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -717,10 +717,6 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[ }, ]; -pub(crate) fn spec(name: &str) -> Option<&'static OptionSpec> { - spec_in(OPTIONS, name) -} - /// The option of `options` named `name`. pub(super) fn spec_in(options: &'static [OptionSpec], name: &str) -> Option<&'static OptionSpec> { options.iter().find(|spec| spec.name == name) -- cgit v1.3.1