From 05937f8ffaefd4c2f2c72cd3adf0064fdc3858bc Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Mon, 3 Feb 2025 02:53:21 -0600 Subject: [PATCH] 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. --- lfs.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lfs.c b/lfs.c index a4d2b745..260356be 100644 --- a/lfs.c +++ b/lfs.c @@ -5948,15 +5948,6 @@ static int lfsr_btree_traverse(lfs_t *lfs, const lfsr_btree_t *btree, // 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 static inline bool lfsr_shrub_isshrub(const lfsr_shrub_t *shrub) { return lfsr_rbyd_isshrub(shrub);