Drop redundant scenario mode booleans

This commit is contained in:
andrussal 2026-03-08 14:42:27 +01:00
parent 0911818626
commit 4c6aea1358

View File

@ -134,21 +134,6 @@ impl<E: Application, Caps> Scenario<E, Caps> {
self.sources.external_nodes()
}
#[must_use]
pub const fn uses_existing_cluster(&self) -> bool {
matches!(self.cluster_mode(), ClusterMode::ExistingCluster)
}
#[must_use]
pub const fn is_managed(&self) -> bool {
matches!(self.cluster_mode(), ClusterMode::Managed)
}
#[must_use]
pub const fn is_external_only(&self) -> bool {
matches!(self.cluster_mode(), ClusterMode::ExternalOnly)
}
#[must_use]
pub fn has_external_nodes(&self) -> bool {
!self.sources.external_nodes().is_empty()