]> git.hungrycats.org Git - bees/commitdiff
roots: drop method `transid_re`
authorZygo Blaxell <bees@furryterror.org>
Sat, 14 Dec 2024 04:05:47 +0000 (23:05 -0500)
committerZygo Blaxell <bees@furryterror.org>
Sat, 14 Dec 2024 04:19:43 +0000 (23:19 -0500)
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 <bees@furryterror.org>
src/bees-roots.cc
src/bees.h

index 991abd3f7466055daf7093bf9f83bbf66f943315..595993c73ad453744bbf290f00ac2739414c4c16 100644 (file)
@@ -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)
 {
index ea811163520b1e293f87d5b506effe77e04dbf94..11c0c7245e5f16e770a108ed360be2733db78fd6 100644 (file)
@@ -550,7 +550,6 @@ class BeesRoots : public enable_shared_from_this<BeesRoots> {
        Timer                                   m_crawl_timer;
        BeesThread                              m_crawl_thread;
        BeesThread                              m_writeback_thread;
-       RateEstimator                           m_transid_re;
        bool                                    m_workaround_btrfs_send = false;
 
        shared_ptr<BeesScanMode>                m_scanner;
@@ -576,7 +575,6 @@ class BeesRoots : public enable_shared_from_this<BeesRoots> {
        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<BeesCrawl> crawl);
        void clear_caches();