From 40e5f26a3ff77e50df808f6f850c617aec2df203 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Fri, 25 Oct 2024 15:02:07 -0400 Subject: [PATCH] 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. --- src/mapport.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mapport.cpp b/src/mapport.cpp index 5972561fd79..b7aadad6b41 100644 --- a/src/mapport.cpp +++ b/src/mapport.cpp @@ -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)