Skip to content

Commit fce37e4

Browse files
committed
dfa: remove some redundant branches
I discovered these while reviewing the code to prep for the rewrite in regex-automata.
1 parent 6cdb904 commit fce37e4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/dfa.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,6 @@ impl<'a> Fsm<'a> {
13531353
match self.cache.trans.next(si, self.byte_class(b)) {
13541354
STATE_UNKNOWN => self.exec_byte(qcur, qnext, si, b),
13551355
STATE_QUIT => None,
1356-
STATE_DEAD => Some(STATE_DEAD),
13571356
nsi => Some(nsi),
13581357
}
13591358
}
@@ -1387,7 +1386,6 @@ impl<'a> Fsm<'a> {
13871386
};
13881387
match self.cache.start_states[flagi] {
13891388
STATE_UNKNOWN => {}
1390-
STATE_DEAD => return Some(STATE_DEAD),
13911389
si => return Some(si),
13921390
}
13931391
q.clear();

0 commit comments

Comments
 (0)