diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-06-27 14:32:36 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-06-27 14:32:36 +0000 |
commit | 57326fb4942281109d21fef403f51867c8f984f7 (patch) | |
tree | e949498fa1f96b8394753bdb38c5dcefbffd7735 /src/couchdb/couch_key_tree.erl | |
parent | 11e6db89380142ada9638d02614beea2952d9b86 (diff) |
removed some dead code found by Dialyzer, more to come
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@788979 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_key_tree.erl')
-rw-r--r-- | src/couchdb/couch_key_tree.erl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/couchdb/couch_key_tree.erl b/src/couchdb/couch_key_tree.erl index d983e20f..87313ff0 100644 --- a/src/couchdb/couch_key_tree.erl +++ b/src/couchdb/couch_key_tree.erl @@ -29,12 +29,8 @@ merge(A, B) -> {Merged, HasConflicts} = lists:foldl( fun(InsertTree, {AccTrees, AccConflicts}) -> - case merge_one(AccTrees, InsertTree, [], false) of - {ok, Merged, Conflicts} -> - {Merged, Conflicts or AccConflicts}; - no -> - {[InsertTree | AccTrees], true} - end + {ok, Merged, Conflicts} = merge_one(AccTrees, InsertTree, [], false), + {Merged, Conflicts or AccConflicts} end, {A, false}, B), if HasConflicts or |