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:
Antoine Poinsot
2024-10-25 15:02:07 -04:00
parent 38fdf7c1fb
commit 40e5f26a3f

View File

@@ -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)