Skip to content

Commit 65003f8

Browse files
committed
Remove unreachable code (fixes #295)
1 parent 3259bf6 commit 65003f8

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

include/ctre/evaluation.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,6 @@ constexpr CTRE_FORCE_INLINE R evaluate(const BeginIterator begin, Iterator curre
211211
} else {
212212
return not_matched;
213213
}
214-
} else {
215-
if (last != current) {
216-
return not_matched;
217-
}
218-
return evaluate(begin, current, last, f, captures, ctll::list<Tail...>());
219214
}
220215

221216
// TODO properly match line end

single-header/ctre-unicode.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4578,11 +4578,6 @@ constexpr CTRE_FORCE_INLINE R evaluate(const BeginIterator begin, Iterator curre
45784578
} else {
45794579
return not_matched;
45804580
}
4581-
} else {
4582-
if (last != current) {
4583-
return not_matched;
4584-
}
4585-
return evaluate(begin, current, last, f, captures, ctll::list<Tail...>());
45864581
}
45874582

45884583
// TODO properly match line end

single-header/ctre.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4575,11 +4575,6 @@ constexpr CTRE_FORCE_INLINE R evaluate(const BeginIterator begin, Iterator curre
45754575
} else {
45764576
return not_matched;
45774577
}
4578-
} else {
4579-
if (last != current) {
4580-
return not_matched;
4581-
}
4582-
return evaluate(begin, current, last, f, captures, ctll::list<Tail...>());
45834578
}
45844579

45854580
// TODO properly match line end

0 commit comments

Comments
 (0)