From 13aa9d63fd2572646b5d106ea5deee529e1dc544 Mon Sep 17 00:00:00 2001 From: komone Date: Mon, 11 Apr 2011 01:01:08 -0500 Subject: [PATCH] Remove unused hex encode (was typoed in any case) --- src/qrcode_demo.erl | 15 --------------- 1 file changed, 15 deletions(-) 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.