mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-04-02 09:13:16 +00:00
Drop redundant scenario mode booleans
This commit is contained in:
parent
0911818626
commit
4c6aea1358
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user