Skip to content

Commit ddc980d

Browse files
committed
fix: remove unused test symbols
Those were before marked as public so they were excluded from the dead code analysis, but the previous commit adjusted their visibility to at most `pub(crate)`.
1 parent ac455a6 commit ddc980d

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

mithril-aggregator/src/database/record/certificate.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,6 @@ impl CertificateRecord {
9494
)
9595
}
9696

97-
pub(crate) fn dummy_msd(id: &str, parent_id: &str, epoch: Epoch) -> Self {
98-
Self::dummy(
99-
id,
100-
parent_id,
101-
epoch,
102-
SignedEntityType::MithrilStakeDistribution(epoch),
103-
)
104-
}
105-
10697
pub(crate) fn dummy(
10798
id: &str,
10899
parent_id: &str,

mithril-signer/src/services/aggregator_client.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -395,21 +395,6 @@ pub(crate) mod dumb {
395395
}
396396

397397
impl DumbAggregatorClient {
398-
/// Instantiate a new DumbCertificateHandler.
399-
pub fn new() -> Self {
400-
Self {
401-
epoch_settings: RwLock::new(None),
402-
last_registered_signer: RwLock::new(None),
403-
aggregator_features: RwLock::new(AggregatorFeaturesMessage::dummy()),
404-
}
405-
}
406-
407-
/// this method pilots the epoch settings handler
408-
pub async fn set_epoch_settings(&self, epoch_settings: Option<SignerEpochSettings>) {
409-
let mut epoch_settings_writer = self.epoch_settings.write().await;
410-
*epoch_settings_writer = epoch_settings;
411-
}
412-
413398
/// Return the last signer that called with the `register` method.
414399
pub async fn get_last_registered_signer(&self) -> Option<Signer> {
415400
self.last_registered_signer.read().await.clone()

0 commit comments

Comments
 (0)