From c131398af6d5ca7a6fcaf2a1c9e3c7d24d9fd398 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Wed, 14 Feb 2024 11:37:11 -0800 Subject: [PATCH] Remove dead code --- ConflictSet.cpp | 43 +------------------------------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 73b40b6..5af9107 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -480,26 +480,6 @@ Node *nextPhysical(Node *node) { } } -Node *nextPhysical(Node *node, Vector &searchPath) { - int index = -1; - for (;;) { - auto nextChild = getChildGeq(node, index + 1); - if (nextChild >= 0) { - auto *result = getChildExists(node, nextChild); - searchPath.push_back(nextChild); - searchPath.insert(searchPath.end(), result->partialKey, - result->partialKey + result->partialKeyLen); - return result; - } - if (node->parent == nullptr) { - return nullptr; - } - searchPath.resize(int(searchPath.size()) - 1 - node->partialKeyLen); - index = node->parentsIndex; - node = node->parent; - } -} - Node *nextLogical(Node *node) { for (node = nextPhysical(node); node != nullptr && !node->entryPresent; node = nextPhysical(node)) @@ -526,27 +506,6 @@ Node *nextSibling(Node *node) { } } -Node *nextSibling(Node *node, Vector &searchPath) { - for (;;) { - if (node->parent == nullptr) { - assert(searchPath.size() == 0); - return nullptr; - } - auto next = getChildGeq(node->parent, node->parentsIndex + 1); - if (next < 0) { - searchPath.resize(int(searchPath.size()) - (1 + node->partialKeyLen)); - node = node->parent; - } else { - searchPath.resize(int(searchPath.size()) - (1 + node->partialKeyLen)); - auto *result = getChildExists(node->parent, next); - searchPath.push_back(next); - searchPath.insert(searchPath.end(), result->partialKey, - result->partialKey + result->partialKeyLen); - return result; - } - } -} - // Performs a physical search for remaining struct SearchStepWise { Node *n; @@ -845,7 +804,7 @@ int firstNeqStride(const uint8_t *ap, const uint8_t *bp) { return i + (std::countr_zero(bitfield) >> 2); } } - __builtin_unreachable(); + __builtin_unreachable(); // GCOVR_EXCL_LINE #else int i = 0; for (; i < kStride - 1; ++i) {