Remove dead code

This commit is contained in:
Michael Vines
2020-02-18 10:02:29 -07:00
parent 7305a1f407
commit 83a8e82626
2 changed files with 8 additions and 18 deletions

View File

@@ -440,19 +440,6 @@ impl ClusterInfo {
.map(|x| (x.value.epoch_slots().unwrap(), x.insert_timestamp))
}
pub fn get_gossiped_root_for_node(&self, pubkey: &Pubkey, since: Option<u64>) -> Option<u64> {
self.gossip
.crds
.table
.get(&CrdsValueLabel::EpochSlots(*pubkey))
.filter(|x| {
since
.map(|since| x.insert_timestamp > since)
.unwrap_or(true)
})
.map(|x| x.value.epoch_slots().unwrap().root)
}
pub fn get_contact_info_for_node(&self, pubkey: &Pubkey) -> Option<&ContactInfo> {
self.gossip
.crds