From fe9e449adb6bd57e66c7ba82ba3effd93b61942e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 4 May 2026 15:02:07 +0900 Subject: refactor(spdx-licenses): remove unused functions --- crates/mozart/src/commands/validate.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crates/mozart/src/commands') diff --git a/crates/mozart/src/commands/validate.rs b/crates/mozart/src/commands/validate.rs index e6778a4..a0c6907 100644 --- a/crates/mozart/src/commands/validate.rs +++ b/crates/mozart/src/commands/validate.rs @@ -325,11 +325,15 @@ fn check_license(obj: &serde_json::Map, result: &mut } // ConfigValidator: deprecated identifier warnings. + let spdx = mozart_spdx_licenses::spdx(); for license in &licenses { if *license == "proprietary" { continue; } - if !mozart_core::validation::is_license_deprecated(license) { + let Some(info) = spdx.get_license_by_identifier(license) else { + continue; + }; + if !info.deprecated { continue; } let warning = if DEPRECATED_GPL_OR_LATER_RE.is_match(license) { -- cgit v1.3.1