Skip to content

Commit

Permalink
Remove non needed clause in ranks_of/5
Browse files Browse the repository at this point in the history
  • Loading branch information
rodo committed Oct 31, 2013
1 parent c65276d commit bd20bd5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/bear.erl
Expand Up @@ -278,8 +278,6 @@ ranks_of(Values) when is_list(Values) ->
end, [], Values),
lists:reverse(L).

ranks_of([E|Es],Acc, N, E, S) ->
ranks_of(Es, Acc, N+1, E, S);
ranks_of([E|Es], Acc, N, P, S) ->
ranks_of(Es,[{P,(S+N-1)/2}|Acc], N+1, E, N);
ranks_of([], Acc, N, P, S) ->
Expand Down

0 comments on commit bd20bd5

Please sign in to comment.