Skip to content

Commit

Permalink
mapport: remove dead code in DispatchMapPort
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
darosior committed Oct 25, 2024
1 parent 38fdf7c commit 40e5f26
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/mapport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 40e5f26

Please sign in to comment.