Permalink
Browse files

Remove unused hex encode (was typoed in any case)

  • Loading branch information...
komone committed Apr 11, 2011
1 parent 7b8b8f9 commit 13aa9d63fd2572646b5d106ea5deee529e1dc544
Showing with 0 additions and 15 deletions.
  1. +0 −15 src/qrcode_demo.erl
View
@@ -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(<<A:4, B:4, Rest/binary>>, Acc) ->
- U = hex_digit(A),
- L = hex_digit(B),
- hex(Rest, <<Acc/binary, U, L>>);
-hex(<<>>, Acc) ->
- Acc.
-
-hex_digit(D) when D >= 0, D =< 9 ->
- $0 + D;
-hex_digit(D) when D >= 10, D =< 16 ->
- $a + D - 10.

0 comments on commit 13aa9d6

Please sign in to comment.