Remove dead code and fix whitespace issue

This commit is contained in:
2024-03-08 16:44:42 -08:00
parent 1437280ec7
commit bd24a362e3

View File

@@ -332,8 +332,7 @@ uint8_t *Node::partialKey() {
case Type::Node256:
return ((Node256 *)this)->partialKey();
}
__builtin_unreachable();
; // GCOVR_EXCL_LINE
__builtin_unreachable(); // GCOVR_EXCL_LINE
}
struct NodeAllocators {
@@ -526,12 +525,6 @@ int getChildGeq(Node *self, int child) {
return -1;
}
void setChildrenParents(Node4 *n) {
for (int i = 0; i < n->numChildren; ++i) {
n->children[i].child->parent = n;
}
}
void setChildrenParents(Node16 *n) {
for (int i = 0; i < n->numChildren; ++i) {
n->children[i].child->parent = n;