From 7f815cb5017bd223e7aec0645645d9ceeaf956d8 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Fri, 20 Sep 2024 16:47:09 +0700 Subject: [PATCH] refactor: remove unused constructor of CDKGLogger --- src/llmq/dkgsession.cpp | 7 +------ src/llmq/dkgsession.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/llmq/dkgsession.cpp b/src/llmq/dkgsession.cpp index 201d015714..da21ea977e 100644 --- a/src/llmq/dkgsession.cpp +++ b/src/llmq/dkgsession.cpp @@ -33,12 +33,7 @@ namespace llmq { CDKGLogger::CDKGLogger(const CDKGSession& _quorumDkg, std::string_view _func, int source_line) : - CDKGLogger(_quorumDkg.params.name, _quorumDkg.quorumIndex, _quorumDkg.m_quorum_base_block_index->GetBlockHash(), _quorumDkg.m_quorum_base_block_index->nHeight, _quorumDkg.AreWeMember(), _func, source_line) -{ -} - -CDKGLogger::CDKGLogger(std::string_view _llmqTypeName, int _quorumIndex, const uint256& _quorumHash, int _height, bool _areWeMember, std::string_view _func, int source_line) : - CBatchedLogger(BCLog::LLMQ_DKG, strprintf("QuorumDKG(type=%s, qIndex=%d, h=%d, member=%d)", _llmqTypeName, _quorumIndex, _height, _areWeMember), __FILE__, source_line) + CBatchedLogger(BCLog::LLMQ_DKG, strprintf("QuorumDKG(type=%s, qIndex=%d, h=%d, member=%d)", _quorumDkg.params.name, _quorumDkg.quorumIndex, _quorumDkg.m_quorum_base_block_index->nHeight, _quorumDkg.AreWeMember()), __FILE__, source_line) { } diff --git a/src/llmq/dkgsession.h b/src/llmq/dkgsession.h index b47854f4fb..3f18fc892b 100644 --- a/src/llmq/dkgsession.h +++ b/src/llmq/dkgsession.h @@ -253,7 +253,6 @@ class CDKGLogger : public CBatchedLogger { public: CDKGLogger(const CDKGSession& _quorumDkg, std::string_view _func, int source_line); - CDKGLogger(std::string_view _llmqTypeName, int _quorumIndex, const uint256& _quorumHash, int _height, bool _areWeMember, std::string_view _func, int source_line); }; /**