Remove some dead code
This commit is contained in:
@@ -3302,15 +3302,11 @@ void begin(CheckJob *job, CheckContext *context) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (job->begin.size() == 0) [[unlikely]] {
|
if (job->begin.size() == 0) [[unlikely]] {
|
||||||
if (job->n->entryPresent) {
|
// We don't erase the root
|
||||||
|
assert(job->n->entryPresent);
|
||||||
job->setResult(job->n->entry.pointVersion <= job->readVersion);
|
job->setResult(job->n->entry.pointVersion <= job->readVersion);
|
||||||
MUSTTAIL return complete(job, context);
|
MUSTTAIL return complete(job, context);
|
||||||
}
|
}
|
||||||
job->n = getFirstChildExists(job->n);
|
|
||||||
job->continuation = down_left_spine;
|
|
||||||
__builtin_prefetch(job->n);
|
|
||||||
MUSTTAIL return keepGoing(job, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
auto taggedChild = getChild(job->n, job->begin[0]);
|
auto taggedChild = getChild(job->n, job->begin[0]);
|
||||||
Node *child = taggedChild;
|
Node *child = taggedChild;
|
||||||
@@ -3322,15 +3318,10 @@ void begin(CheckJob *job, CheckContext *context) {
|
|||||||
__builtin_prefetch(job->n);
|
__builtin_prefetch(job->n);
|
||||||
MUSTTAIL return keepGoing(job, context);
|
MUSTTAIL return keepGoing(job, context);
|
||||||
} else {
|
} else {
|
||||||
job->n = nextSibling(job->n);
|
// The root never has a next sibling
|
||||||
if (job->n == nullptr) {
|
|
||||||
job->setResult(true);
|
job->setResult(true);
|
||||||
MUSTTAIL return complete(job, context);
|
MUSTTAIL return complete(job, context);
|
||||||
}
|
}
|
||||||
job->continuation = down_left_spine;
|
|
||||||
__builtin_prefetch(job->n);
|
|
||||||
MUSTTAIL return keepGoing(job, context);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
job->continuation = iterTable[taggedChild.getType()];
|
job->continuation = iterTable[taggedChild.getType()];
|
||||||
job->n = child;
|
job->n = child;
|
||||||
|
Reference in New Issue
Block a user