diff --git a/src/qrcode_demo.erl b/src/qrcode_demo.erl index ea6d658..23cd928 100644 --- a/src/qrcode_demo.erl +++ b/src/qrcode_demo.erl @@ -119,18 +119,3 @@ hotp(Key, Count) when is_binary(Key), is_integer(Count) -> unow() -> calendar:datetime_to_gregorian_seconds(calendar:universal_time()) - ?UNIX_TIME_ZERO. - -hex(Bin) when is_binary(Bin) -> - hex(Bin, <<>>). - -hex(<>, Acc) -> - U = hex_digit(A), - L = hex_digit(B), - hex(Rest, <>); -hex(<<>>, Acc) -> - Acc. - -hex_digit(D) when D >= 0, D =< 9 -> - $0 + D; -hex_digit(D) when D >= 10, D =< 16 -> - $a + D - 10.