Skip to content

Commit

Permalink
Use Elixir's integer_to_binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Torres committed Oct 18, 2012
1 parent 4c782e9 commit 2c66066
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/dynamo/http/utils.ex
Expand Up @@ -46,10 +46,6 @@ defmodule Dynamo.HTTP.Utils do
integer_to_binary(number)
end

defp integer_to_binary(number) do
number /> integer_to_list /> list_to_binary
end

defp rfc2822({ { year, month, day } = date, { hour, minute, second } }) do
weekday_name = weekday_name(:calendar.day_of_the_week(date))
month_name = month_name(month)
Expand Down

0 comments on commit 2c66066

Please sign in to comment.