mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-18 21:35:13 +01:00
mapport: remove dead code in DispatchMapPort
Since there is now only two options in the MapPortProtoFlag enum, the four possible combinations of current and enabled are already covered in the four `if` branches.
This commit is contained in:
parent
38fdf7c1fb
commit
40e5f26a3f
@ -171,10 +171,6 @@ static void DispatchMapPort()
|
||||
if (g_mapport_enabled_protos & g_mapport_current_proto) {
|
||||
return;
|
||||
}
|
||||
|
||||
assert(g_mapport_thread.joinable());
|
||||
assert(!g_mapport_interrupt);
|
||||
g_mapport_interrupt();
|
||||
}
|
||||
|
||||
static void MapPortProtoSetEnabled(MapPortProtoFlag proto, bool enabled)
|
||||
|
Loading…
Reference in New Issue
Block a user