From 0b29ff0bf7e73bf6e773e7fd565a9d11a8876ee9 Mon Sep 17 00:00:00 2001 From: JCW Date: Mon, 2 Jun 2025 13:17:13 +0100 Subject: [PATCH] Cleanup --- include/xrpl/beast/hash/xxhasher.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/include/xrpl/beast/hash/xxhasher.h b/include/xrpl/beast/hash/xxhasher.h index 9bac756bbb..0447ed7c3d 100644 --- a/include/xrpl/beast/hash/xxhasher.h +++ b/include/xrpl/beast/hash/xxhasher.h @@ -45,22 +45,8 @@ private: // requires 64-bit std::size_t static_assert(sizeof(std::size_t) == 8, ""); - struct state_wrapper - { - XXH3_state_t* state; - state_wrapper() - { - state = XXH3_createState(); - } - ~state_wrapper() - { - XXH3_freeState(state); - } - }; - // XXH3_state_t* state_; #if PROFILING - inline static thread_local state_wrapper wrapper{}; std::size_t totalSize_ = 0; std::chrono::nanoseconds duration_{}; std::uint64_t cpuCycles = 0;