From ba917249486310985a34a5250bb570ca18821322 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Wed, 7 Feb 2018 17:42:39 -0500 Subject: [PATCH] boost: remove useless threadGroup parameter from Discover --- src/init.cpp | 2 +- src/net.cpp | 2 +- src/net.h | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 2912beec68edd..9524da93cd2ed 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1667,7 +1667,7 @@ bool AppInitMain() if (gArgs.GetBoolArg("-listenonion", DEFAULT_LISTEN_ONION)) StartTorControl(threadGroup, scheduler); - Discover(threadGroup); + Discover(); // Map ports with UPnP if (gArgs.GetBoolArg("-upnp", DEFAULT_UPNP)) { diff --git a/src/net.cpp b/src/net.cpp index 307e5d49d5d51..201914685cb56 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2129,7 +2129,7 @@ bool CConnman::BindListenPort(const CService &addrBind, std::string& strError, b return true; } -void Discover(boost::thread_group& threadGroup) +void Discover() { if (!fDiscover) return; diff --git a/src/net.h b/src/net.h index daa0eea8b8c09..8378a303b8b1e 100644 --- a/src/net.h +++ b/src/net.h @@ -37,10 +37,6 @@ class CScheduler; class CNode; -namespace boost { - class thread_group; -} // namespace boost - /** Time between pings automatically sent out for latency probing and keepalive (in seconds). */ static const int PING_INTERVAL = 2 * 60; /** Time after which to disconnect, after waiting for a ping response (or inactivity). */ @@ -441,7 +437,7 @@ class CConnman friend struct CConnmanTest; }; extern std::unique_ptr g_connman; -void Discover(boost::thread_group& threadGroup); +void Discover(); void StartMapPort(); void InterruptMapPort(); void StopMapPort();