Skip to content

Commit b82857d

Browse files
committed
io-sim-por: removed an if clause
It is asserted that it will not happen.
1 parent 163443f commit b82857d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

io-sim/src/Control/Monad/IOSimPOR/Internal.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,6 @@ reschedule :: SimState s a -> ST s (SimTrace a)
734734
reschedule simstate@SimState{ runqueue, threads,
735735
control=control@(ControlFollow ((tid,tstep):_) _)
736736
} =
737-
if not (tid `elem` runqueue) then
738-
error ("Can't follow "++show control++"\n"++
739-
" tid: "++show tid++"\n"++
740-
" tstep: "++show tstep++"\n"++
741-
" runqueue: "++show runqueue++"\n") else
742737
assert (tid `elem` runqueue) $
743738
assert (tid `Map.member` threads) $
744739
assert (invariant Nothing simstate) $

0 commit comments

Comments
 (0)