Skip to content

Commit

Permalink
Remove unused function.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmundkur authored and srobertson committed Oct 7, 2012
1 parent 551d859 commit 29df654
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions master/src/disco_util.erl
@@ -1,5 +1,5 @@
-module(disco_util).
-export([groupby/2, join/2, format_timestamp/1]).
-export([groupby/2, format_timestamp/1]).

-spec format_timestamp(erlang:timestamp()) -> binary().
format_timestamp(TimeStamp) ->
Expand All @@ -16,8 +16,3 @@ groupby(N, [H|_] = List, Groups) ->
Key = element(N, H),
{Group, Rest} = lists:splitwith(fun(X) -> Key =:= element(N, X) end, List),
groupby(N, Rest, [Group|Groups]).

join([], _Separator) -> [];
join([_] = List, _Separator) -> List;
join([F|List], Separator) ->
lists:flatten([F, [[Separator, E] || E <- List]]).

0 comments on commit 29df654

Please sign in to comment.