Skip to content

Commit

Permalink
approval-voting: remove dead test code (#5815)
Browse files Browse the repository at this point in the history
Minor cleanup.

---------

Signed-off-by: Andrei Sandu <[email protected]>
  • Loading branch information
sandreim authored Sep 25, 2024
1 parent e3251ce commit c350c4c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions polkadot/node/core/approval-voting/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use polkadot_node_subsystem::{
};
use polkadot_node_subsystem_test_helpers as test_helpers;
use polkadot_node_subsystem_util::TimeoutExt;
use polkadot_overseer::{HeadSupportsParachains, SpawnGlue};
use polkadot_overseer::SpawnGlue;
use polkadot_primitives::{
ApprovalVote, CandidateCommitments, CandidateEvent, CoreIndex, DisputeStatement, GroupIndex,
Header, Id as ParaId, IndexedVec, NodeFeatures, ValidDisputeStatementKind, ValidationCode,
Expand All @@ -48,7 +48,6 @@ use polkadot_primitives::{
use std::{cmp::max, time::Duration};

use assert_matches::assert_matches;
use async_trait::async_trait;
use parking_lot::Mutex;
use sp_keyring::sr25519::Keyring as Sr25519Keyring;
use sp_keystore::Keystore;
Expand Down Expand Up @@ -131,15 +130,6 @@ pub mod test_constants {
pub(crate) const TEST_CONFIG: DatabaseConfig = DatabaseConfig { col_approval_data: DATA_COL };
}

struct MockSupportsParachains;

#[async_trait]
impl HeadSupportsParachains for MockSupportsParachains {
async fn head_supports_parachains(&self, _head: &Hash) -> bool {
true
}
}

fn slot_to_tick(t: impl Into<Slot>) -> Tick {
slot_number_to_tick(SLOT_DURATION_MILLIS, t.into())
}
Expand Down

0 comments on commit c350c4c

Please sign in to comment.