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.
pull/31130/head
Antoine Poinsot 2 weeks ago
parent 38fdf7c1fb
commit 40e5f26a3f
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

@ -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…
Cancel
Save