couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r988454 - /couchdb/trunk/src/couchdb/couch_httpd_db.erl
Date Tue, 24 Aug 2010 09:50:17 GMT
Author: rnewson
Date: Tue Aug 24 09:50:17 2010
New Revision: 988454

URL: http://svn.apache.org/viewvc?rev=988454&view=rev
Log:
fix warnings of unused Len variables.

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_db.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_db.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_db.erl?rev=988454&r1=988453&r2=988454&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_db.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_db.erl Tue Aug 24 09:50:17 2010
@@ -1084,14 +1084,14 @@ db_attachment_req(#httpd{method=Method,m
 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



Mime
View raw message