deobfuscate: silence dead_code on Deobfuscator::has_sig/has_nsig

Public API methods exposed for downstream consumers (e.g. straw can
call deobf.has_sig() to skip cipher streams without observing an Err).
The internal short-circuit uses the struct field directly so the
methods register as unused at compile time.
This commit is contained in:
Kayos 2026-05-24 12:21:55 -07:00
parent 8126cc0da5
commit 1211f601df

View file

@ -197,11 +197,16 @@ impl Deobfuscator {
}
/// True when the underlying DeobfData had a valid sig fn extracted.
/// Exposed for consumers that want to short-circuit cipher streams
/// without invoking `deobfuscate_sig` and observing the error.
#[allow(dead_code)]
pub fn has_sig(&self) -> bool {
self.has_sig
}
/// True when the underlying DeobfData had a valid nsig fn extracted.
/// Exposed for consumers that want to short-circuit throttled URLs.
#[allow(dead_code)]
pub fn has_nsig(&self) -> bool {
self.has_nsig
}