Skip to content

Commit 67fbe99

Browse files
committed
Revert decode_name and remove_ignored changes
1 parent 0baf25d commit 67fbe99

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

lib/elixir/lib/base.ex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,7 @@ defmodule Base do
152152
defp remove_ignored(string, nil), do: string
153153

154154
defp remove_ignored(string, :whitespace) do
155-
case :binary.match(string, [<<?\s>>, <<?\t>>, <<?\r>>, <<?\n>>]) do
156-
:nomatch -> string
157-
_ -> for <<char::8 <- string>>, char not in ~c"\s\t\r\n", into: <<>>, do: <<char::8>>
158-
end
155+
for <<char::8 <- string>>, char not in ~c"\s\t\r\n", into: <<>>, do: <<char::8>>
159156
end
160157

161158
@doc """
@@ -414,7 +411,6 @@ defmodule Base do
414411

415412
defp unquote(valid_char_name)(_char), do: false
416413

417-
@compile {:inline, [{decode_name, 1}]}
418414
defp unquote(decode_name)(char) do
419415
index = char - unquote(min)
420416

@@ -894,7 +890,6 @@ defmodule Base do
894890

895891
defp unquote(valid_char_name)(_char), do: false
896892

897-
@compile {:inline, [{decode_name, 1}]}
898893
defp unquote(decode_name)(char) do
899894
index = char - unquote(min)
900895

@@ -1551,7 +1546,6 @@ defmodule Base do
15511546

15521547
defp unquote(valid_char_name)(_char), do: false
15531548

1554-
@compile {:inline, [{decode_name, 1}]}
15551549
defp unquote(decode_name)(char) do
15561550
index = char - unquote(min)
15571551

0 commit comments

Comments
 (0)