Permalink
Browse files

Remove unreachable code

Since a list is always passed to this function the first function head can
never match.
  • Loading branch information...
1 parent 8466770 commit 0ab49514eb691212cc5ff1e1b3e510a03d5a7746 @rzezeski committed Oct 16, 2011
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/riak_search_op_proximity.erl
@@ -213,8 +213,6 @@ get_position_heads([], Acc) ->
lists:reverse(Acc).
%% Given a list of integers, return the smallest integer that is a duplicate.
-get_smallest_duplicate_or_not(undefined) ->
- undefined;
get_smallest_duplicate_or_not(List) ->
get_smallest_duplicate_or_not(lists:sort(List), undefined, undefined).
get_smallest_duplicate_or_not([H,H|Rest], SmallestDup, SmallestVal)

0 comments on commit 0ab4951

Please sign in to comment.