Skip to content

Commit d68a819

Browse files
committed
stdlib: Remove dead code in re.erl
1 parent e454acf commit d68a819

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/stdlib/src/re.erl

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,15 +1546,8 @@ check_for_unicode(_,L) ->
15461546
check_for_crlf({re_pattern,_,_,1,_},_) ->
15471547
true;
15481548
check_for_crlf({re_pattern,_,_,0,_},_) ->
1549-
false;
1550-
check_for_crlf(_,L) ->
1551-
case lists:keysearch(newline,1,L) of
1552-
{value,{newline,any}} -> true;
1553-
{value,{newline,crlf}} -> true;
1554-
{value,{newline,anycrlf}} -> true;
1555-
_ -> false
1556-
end.
1557-
1549+
false.
1550+
15581551
% SelectReturn = false | all | stirpfirst | none
15591552
% ConvertReturn = index | list | binary
15601553
% {capture, all} -> all (untouchded)

0 commit comments

Comments
 (0)