Remove dead code (#9404)

automerge
This commit is contained in:
Michael Vines
2020-04-09 13:09:59 -07:00
committed by GitHub
parent aab9d9229c
commit f3afe5c99c
5 changed files with 32 additions and 47 deletions

View File

@ -476,11 +476,9 @@ mod test {
.receive_elapsed = 10;
// Try to fetch ticks from blockstore, nothing should break
assert_eq!(blockstore.get_slot_entries(0, 0, None).unwrap(), ticks0);
assert_eq!(blockstore.get_slot_entries(0, 0).unwrap(), ticks0);
assert_eq!(
blockstore
.get_slot_entries(0, num_shreds_per_slot, None)
.unwrap(),
blockstore.get_slot_entries(0, num_shreds_per_slot).unwrap(),
vec![],
);
@ -516,11 +514,9 @@ mod test {
);
// Try to fetch the incomplete ticks from blockstore, should succeed
assert_eq!(blockstore.get_slot_entries(0, 0, None).unwrap(), ticks0);
assert_eq!(blockstore.get_slot_entries(0, 0).unwrap(), ticks0);
assert_eq!(
blockstore
.get_slot_entries(0, num_shreds_per_slot, None)
.unwrap(),
blockstore.get_slot_entries(0, num_shreds_per_slot).unwrap(),
vec![],
);
}

View File

@ -542,10 +542,7 @@ mod test {
.insert_shreds(shreds, None, false)
.expect("Expect successful processing of shred");
assert_eq!(
blockstore.get_slot_entries(0, 0, None).unwrap(),
original_entries
);
assert_eq!(blockstore.get_slot_entries(0, 0).unwrap(), original_entries);
drop(blockstore);
Blockstore::destroy(&blockstore_path).expect("Expected successful database destruction");