Skip to content

Commit

Permalink
Removed commented out code.
Browse files Browse the repository at this point in the history
Signed-off-by: David Gilligan-Cook <dcook@imageworks.com>
  • Loading branch information
dcookspi committed Dec 6, 2023
1 parent 4287114 commit 665673b
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions crates/spk-schema/src/build_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ const ARCH_ADDS: &[&OptName] = &[OptName::os(), OptName::arch()];
const OS_ADDS: &[&OptName] = &[OptName::os()];
const ANY_ADDS: &[&OptName] = &[];

// Each HostCompat value disallows certain var names when host_compat
// validation is enabled in the config file.
// TODO: these will be used when the linting is added, so haven't removed them
// const DISTRO_DISALLOWS: &[&OptName] = &[];
// const ARCH_DISALLOWS: &[&OptName] = &[OptName::distro()];
// const OS_DISALLOWS: &[&OptName] = &[OptName::distro(), OptName::arch()];
// const ANY_DISALLOWS: &[&OptName] = &[OptName::distro(), OptName::arch(), OptName::os()];

/// Set what level of cross-platform compatibility the built package
/// should have.
#[derive(
Expand Down Expand Up @@ -105,16 +97,6 @@ impl HostCompat {

Ok(settings)
}

// TODO: comment this back in when adding linting for host_compats
// fn names_disallowed(&self) -> &[&OptName] {
// match self {
// HostCompat::Distro => DISTRO_DISALLOWS,
// HostCompat::Arch => ARCH_DISALLOWS,
// HostCompat::Os => OS_DISALLOWS,
// HostCompat::Any => ANY_DISALLOWS,
// }
//}
}

/// A set of structured inputs used to build a package.
Expand Down

0 comments on commit 665673b

Please sign in to comment.