diff options
author | Robert Newson <rnewson@apache.org> | 2010-08-24 09:50:17 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2010-08-24 09:50:17 +0000 |
commit | 962c2a3c41e37148fb31c9e62d60955f847bc5f6 (patch) | |
tree | e29a5567ce5bfc25e0846c540ea00a553abee1c2 /src | |
parent | 8b0860660a2a7923ca9c56fed3acac8543546bfe (diff) |
fix warnings of unused Len variables.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@988454 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_httpd_db.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl index 3e611fdd..8ee6fc3f 100644 --- a/src/couchdb/couch_httpd_db.erl +++ b/src/couchdb/couch_httpd_db.erl @@ -1084,14 +1084,14 @@ db_attachment_req(#httpd{method=Method,mochi_req=MochiReq}=Req, Db, DocId, FileN db_attachment_req(Req, _Db, _DocId, _FileNameParts) -> send_method_not_allowed(Req, "DELETE,GET,HEAD,PUT"). -parse_ranges(undefined, Len) -> +parse_ranges(undefined, _Len) -> undefined; -parse_ranges(fail, Len) -> +parse_ranges(fail, _Len) -> throw(bad_request); parse_ranges(Ranges, Len) -> parse_ranges(Ranges, Len, []). -parse_ranges([], Len, Acc) -> +parse_ranges([], _Len, Acc) -> lists:reverse(Acc); parse_ranges([{From,To}|Rest], Len, Acc) -> {From1, To1} = case {From, To} of |