From c25c1bd826273c9ad4d1c506bd33f34bf8502056 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Sat, 4 Jul 2009 15:17:44 +0000 Subject: last three dialyzer recommended cleanups git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@791136 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_btree.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/couchdb/couch_btree.erl') diff --git a/src/couchdb/couch_btree.erl b/src/couchdb/couch_btree.erl index 0231d83c..c9079781 100644 --- a/src/couchdb/couch_btree.erl +++ b/src/couchdb/couch_btree.erl @@ -243,8 +243,9 @@ complete_root(Bt, KPs) -> % written. Plus with the "case size(term_to_binary(InList)) of" code it's % probably really inefficient. -chunkify(_Bt, []) -> - []; +% dialyzer says this pattern is never matched +% chunkify(_Bt, []) -> +% []; chunkify(Bt, InList) -> case size(term_to_binary(InList)) of Size when Size > ?CHUNK_THRESHOLD -> -- cgit v1.2.3