Skip to content

Commit 13aa9d6

Browse files
committed
Remove unused hex encode (was typoed in any case)
1 parent 7b8b8f9 commit 13aa9d6

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/qrcode_demo.erl

-15
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,3 @@ hotp(Key, Count) when is_binary(Key), is_integer(Count) ->
119119

120120
unow() ->
121121
calendar:datetime_to_gregorian_seconds(calendar:universal_time()) - ?UNIX_TIME_ZERO.
122-
123-
hex(Bin) when is_binary(Bin) ->
124-
hex(Bin, <<>>).
125-
126-
hex(<<A:4, B:4, Rest/binary>>, Acc) ->
127-
U = hex_digit(A),
128-
L = hex_digit(B),
129-
hex(Rest, <<Acc/binary, U, L>>);
130-
hex(<<>>, Acc) ->
131-
Acc.
132-
133-
hex_digit(D) when D >= 0, D =< 9 ->
134-
$0 + D;
135-
hex_digit(D) when D >= 10, D =< 16 ->
136-
$a + D - 10.

0 commit comments

Comments
 (0)