Dropped lfsr_shrub_init
We no longer use this, initialization is now implicit in lfsr_bshrub_init. Keeping this around just risks the untested estimate logic falling out-of-date.
This commit is contained in:
@@ -5948,15 +5948,6 @@ static int lfsr_btree_traverse(lfs_t *lfs, const lfsr_btree_t *btree,
|
|||||||
|
|
||||||
// shrub things
|
// shrub things
|
||||||
|
|
||||||
// create an empty shrub
|
|
||||||
static void lfsr_shrub_init(lfsr_shrub_t *shrub, lfs_block_t block) {
|
|
||||||
shrub->weight = 0;
|
|
||||||
shrub->blocks[0] = block;
|
|
||||||
shrub->trunk = LFSR_RBYD_ISSHRUB | 0;
|
|
||||||
// force estimate recalculation
|
|
||||||
shrub->eoff = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// helper functions
|
// helper functions
|
||||||
static inline bool lfsr_shrub_isshrub(const lfsr_shrub_t *shrub) {
|
static inline bool lfsr_shrub_isshrub(const lfsr_shrub_t *shrub) {
|
||||||
return lfsr_rbyd_isshrub(shrub);
|
return lfsr_rbyd_isshrub(shrub);
|
||||||
|
|||||||
Reference in New Issue
Block a user