unlock: drop applies_to — the matrix reports did-work, not matched

This commit is contained in:
Matthew Jackson
2026-07-01 10:44:39 -07:00
parent 569e23662b
commit 892e586340
2 changed files with 0 additions and 17 deletions
-8
View File
@@ -129,14 +129,6 @@ impl Unlocker for LibreDrive {
ctx.kind == crate::DiscKind::Unknown && profile::find_bundled(ctx.drive_id).is_some()
}
/// For the report, the drive unlocker applies whenever it recognises the
/// DRIVE — independent of disc kind (its live `matches` is gated to the
/// Unknown-kind init phase, which would falsely read "no" once the disc kind
/// is known).
fn applies_to(&self, ctx: &UnlockCtx) -> bool {
profile::find_bundled(ctx.drive_id).is_some()
}
/// Firmware-unlock the drive and report its OEM Volume ID. The unlocked drive
/// serves CLEAR content, so `drive_unlocked: true` and there is no bus key.
///
-9
View File
@@ -121,15 +121,6 @@ pub trait Unlocker: Send + Sync {
/// whether to RUN it.
fn matches(&self, ctx: &UnlockCtx) -> bool;
/// Report-only: would this unlocker apply to this drive + disc, for a
/// user-facing unlocker matrix? Distinct from [`matches`](Unlocker::matches),
/// which is phase-gated (e.g. the drive-prep unlocker only `matches` at the
/// Unknown-kind init phase). Default: same as `matches`; the drive-keyed
/// unlocker overrides it to report on drive identity regardless of disc kind.
fn applies_to(&self, ctx: &UnlockCtx) -> bool {
self.matches(ctx)
}
/// Remove the bus-encryption barrier, returning what was learned.
fn unlock(
&self,