From 97717cec86a242e40f20151e4d2db77488200f95 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Mon, 18 Mar 2024 15:30:15 -0700 Subject: [PATCH] Remove suspected dead code Removing it is definitely safe. I suspect that any way to get here would have already returned from checkRangeRead during the search for the common prefix --- ConflictSet.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 10ab695..1c26371 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1681,9 +1681,6 @@ bool checkRangeStartsWith(Node *n, std::span key, int begin, #endif auto remaining = key; for (;;) { - if (maxVersion(n, impl) <= readVersion) { - return true; - } if (remaining.size() == 0) { return maxBetweenExclusive(n, begin, end) <= readVersion; }