From 0711ec3831faefa383f5ac87c827eb96f71060d7 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Thu, 15 Aug 2024 20:19:00 -0700 Subject: [PATCH] Remove dead code --- ConflictSet.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 513e2b4..a9b8e43 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -195,7 +195,6 @@ struct Node { /* end section that's copied to the next node */ uint8_t *partialKey(); - size_t size() const; Type getType() const { return type; } int32_t getCapacity() const { return partialKeyCapacity; } @@ -693,23 +692,6 @@ uint8_t *Node::partialKey() { } } -size_t Node::size() const { - switch (type) { - case Type_Node0: - return ((Node0 *)this)->size(); - case Type_Node3: - return ((Node3 *)this)->size(); - case Type_Node16: - return ((Node16 *)this)->size(); - case Type_Node48: - return ((Node48 *)this)->size(); - case Type_Node256: - return ((Node256 *)this)->size(); - default: // GCOVR_EXCL_LINE - __builtin_unreachable(); // GCOVR_EXCL_LINE - } -} - // A type that's plumbed along the check call tree. Lifetime ends after each // check call. struct ReadContext {