From 796aaed7f81762742c5ec978cc7ed2d64f4297c8 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Mon, 15 Jan 2018 23:07:12 -0500 Subject: [PATCH] roots: remove dead code and #if blocks In both instances the code contained within (or the conditional compilation surrounding it) is no longer controversial. Signed-off-by: Zygo Blaxell --- src/bees-roots.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 2d0807d..65b5aeb 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -738,7 +738,6 @@ BeesCrawl::fetch_extents() BEESTRACE("i = " << i); -#if 1 // We need the "+ 1" and objectid rollover that next_min does. auto new_state = get_state(); new_state.m_objectid = sk.min_objectid; @@ -750,7 +749,6 @@ BeesCrawl::fetch_extents() // is a lot of metadata we can't process. Favor forward // progress over losing search results. set_state(new_state); -#endif // Ignore things that aren't EXTENT_DATA_KEY if (i.type != BTRFS_EXTENT_DATA_KEY) { @@ -858,12 +856,6 @@ BeesCrawl::pop_front() } auto rv = *m_extents.begin(); m_extents.erase(m_extents.begin()); -#if 0 - auto state = get_state(); - state.m_objectid = rv.fid().ino(); - state.m_offset = rv.begin(); - set_state(state); -#endif return rv; }