From 1381a0f19e3ce6e38c9e16dbdf41b0fdcbafdf29 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Mon, 16 Jan 2023 12:58:33 -0600 Subject: [PATCH] GH-592 Remove unused methods --- .../state_history/include/eosio/state_history/log.hpp | 8 -------- plugins/state_history_plugin/state_history_plugin.cpp | 2 -- 2 files changed, 10 deletions(-) diff --git a/libraries/state_history/include/eosio/state_history/log.hpp b/libraries/state_history/include/eosio/state_history/log.hpp index 896d2b227f..90b1407dc7 100644 --- a/libraries/state_history/include/eosio/state_history/log.hpp +++ b/libraries/state_history/include/eosio/state_history/log.hpp @@ -341,14 +341,6 @@ class state_history_log { } } - - void acquire_lock(std::optional>& lock) { - lock.emplace(rewrite_mx); - } - - void stop() { - } - ~state_history_log() { //nothing to do if log is empty or we aren't pruning if(_begin_block == _end_block) diff --git a/plugins/state_history_plugin/state_history_plugin.cpp b/plugins/state_history_plugin/state_history_plugin.cpp index 30306597e1..b51a705dc3 100644 --- a/plugins/state_history_plugin/state_history_plugin.cpp +++ b/plugins/state_history_plugin/state_history_plugin.cpp @@ -472,8 +472,6 @@ void state_history_plugin::plugin_shutdown() { my->block_start_connection.reset(); std::for_each(my->session_set.begin(), my->session_set.end(), [](auto& s){ s->close(); } ); my->stopping = true; - my->trace_log->stop(); - my->chain_state_log->stop(); my->thread_pool.stop(); }