Skip to content

Commit 40e5f26

Browse files
committed
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.
1 parent 38fdf7c commit 40e5f26

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/mapport.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,6 @@ static void DispatchMapPort()
171171
if (g_mapport_enabled_protos & g_mapport_current_proto) {
172172
return;
173173
}
174-
175-
assert(g_mapport_thread.joinable());
176-
assert(!g_mapport_interrupt);
177-
g_mapport_interrupt();
178174
}
179175

180176
static void MapPortProtoSetEnabled(MapPortProtoFlag proto, bool enabled)

0 commit comments

Comments
 (0)