From bb09b1ab0efe50110f92dc52802cb6443ca05cb5 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Fri, 13 Dec 2024 23:05:47 -0500 Subject: [PATCH] roots: drop method `transid_re` There are no callers of this method any more, and it exposes more of BeesRoots than we really want things to have access to. Signed-off-by: Zygo Blaxell --- src/bees-roots.cc | 6 ------ src/bees.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 991abd3..595993c 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -2030,12 +2030,6 @@ BeesRoots::open_root_ino(uint64_t root, uint64_t ino) return m_ctx->fd_cache()->open_root_ino(root, ino); } -RateEstimator & -BeesRoots::transid_re() -{ - return m_transid_re; -} - void BeesRoots::insert_tmpfile(Fd fd) { diff --git a/src/bees.h b/src/bees.h index ea81116..11c0c72 100644 --- a/src/bees.h +++ b/src/bees.h @@ -550,7 +550,6 @@ class BeesRoots : public enable_shared_from_this { Timer m_crawl_timer; BeesThread m_crawl_thread; BeesThread m_writeback_thread; - RateEstimator m_transid_re; bool m_workaround_btrfs_send = false; shared_ptr m_scanner; @@ -576,7 +575,6 @@ class BeesRoots : public enable_shared_from_this { void writeback_thread(); uint64_t next_root(uint64_t root = 0); void current_state_set(const BeesCrawlState &bcs); - RateEstimator& transid_re(); bool crawl_batch(shared_ptr crawl); void clear_caches();