You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/07/31 23:10:06 UTC

[15/30] bear commit: updated refs/heads/import-master to 5f99806

Remove non needed clause in ranks_of/5


Project: http://git-wip-us.apache.org/repos/asf/couchdb-bear/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-bear/commit/bd20bd5c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-bear/tree/bd20bd5c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-bear/diff/bd20bd5c

Branch: refs/heads/import-master
Commit: bd20bd5cec51cd14c9becb7b3f360c6b09adf549
Parents: c65276d
Author: Rodolphe QuiƩdeville <ro...@quiedeville.org>
Authored: Thu Oct 31 21:50:54 2013 +0100
Committer: Rodolphe QuiƩdeville <ro...@quiedeville.org>
Committed: Thu Oct 31 21:50:54 2013 +0100

----------------------------------------------------------------------
 src/bear.erl | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-bear/blob/bd20bd5c/src/bear.erl
----------------------------------------------------------------------
diff --git a/src/bear.erl b/src/bear.erl
index ffc9025..04593e7 100644
--- a/src/bear.erl
+++ b/src/bear.erl
@@ -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) ->