Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Co-authored-by: stickies-v <[email protected]>
It is written but never read.
The only caller, in wallet/coinselection.h, inserts into a std::set with a custom comparator, so only the std::set<TsetT, Compare> overload is ever selected.
Co-authored-by: stickies-v <[email protected]>
5935ae6 to
1fdc122
Compare
| void StartREST(const std::any& context); | ||
| /** Interrupt RPC REST subsystem. | ||
| */ | ||
| void InterruptREST(); |
There was a problem hiding this comment.
Not sure it technically qualifies as dead code, but InterruptHTTPRPC is also a no-op, it just logs the interruption but then doesn't actually do anything. Could be removed here as well I think?
git diff on 1fdc122
diff --git a/src/httprpc.cpp b/src/httprpc.cpp
index ad930f13ed..727af27e25 100644
--- a/src/httprpc.cpp
+++ b/src/httprpc.cpp
@@ -354,11 +354,6 @@ bool StartHTTPRPC(const std::any& context)
return true;
}
-void InterruptHTTPRPC()
-{
- LogDebug(BCLog::RPC, "Interrupting HTTP RPC server\n");
-}
-
void StopHTTPRPC()
{
LogDebug(BCLog::RPC, "Stopping HTTP RPC server\n");
diff --git a/src/httprpc.h b/src/httprpc.h
index 32ae90b5d8..41657d3ded 100644
--- a/src/httprpc.h
+++ b/src/httprpc.h
@@ -15,9 +15,6 @@ enum HTTPStatusCode : int;
* Precondition; HTTP and RPC has been started.
*/
bool StartHTTPRPC(const std::any& context);
-/** Interrupt HTTP RPC subsystem.
- */
-void InterruptHTTPRPC();
/** Stop HTTP RPC subsystem.
* Precondition; HTTP and RPC has been stopped.
*/
diff --git a/src/init.cpp b/src/init.cpp
index 7289aacd5e..f8b5f98d7a 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -296,7 +296,6 @@ void Interrupt(NodeContext& node)
// Wake any threads that may be waiting for the tip to change.
if (node.notifications) WITH_LOCK(node.notifications->m_tip_block_mutex, node.notifications->m_tip_block_cv.notify_all());
InterruptHTTPServer();
- InterruptHTTPRPC();
InterruptRPC();
if (node.tor_controller) {
node.tor_controller->Interrupt();

Similar to #36509. Also generally related to #36167.