couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r803325 - /couchdb/trunk/src/couchdb/couch_httpd_show.erl
Date Tue, 11 Aug 2009 23:38:43 GMT
Author: jan
Date: Tue Aug 11 23:38:43 2009
New Revision: 803325

URL: http://svn.apache.org/viewvc?rev=803325&view=rev
Log:
silence compiler warnings, don't use unused variables

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

Modified: couchdb/trunk/src/couchdb/couch_httpd_show.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_show.erl?rev=803325&r1=803324&r2=803325&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_show.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_show.erl Tue Aug 11 23:38:43 2009
@@ -65,13 +65,13 @@
     send_doc_update_response(Lang, UpdateSrc, nil, nil, Req, Db);
 
 handle_doc_update_req(#httpd{
-        path_parts=[_DbName, _Design, DesignName, _Update, UpdateName, DocId]
-    }=Req, Db) ->
+        path_parts=[_DbName, _Design, _DesignName, _Update, _UpdateName, _DocId]
+    }=Req, _Db) ->
     send_method_not_allowed(Req, "PUT");
 
 handle_doc_update_req(#httpd{
-        path_parts=[_DbName, _Design, DesignName, _Update, UpdateName]
-    }=Req, Db) ->
+        path_parts=[_DbName, _Design, _DesignName, _Update, _UpdateName]
+    }=Req, _Db) ->
     send_method_not_allowed(Req, "POST");
 
 handle_doc_update_req(Req, _Db) ->
@@ -404,7 +404,7 @@
         couch_httpd_external:send_external_response(Req, JsonResp)
     end).
 
-send_doc_update_response(Lang, UpdateSrc, DocId, Doc, #httpd{mochi_req=MReq}=Req, Db) ->
+send_doc_update_response(Lang, UpdateSrc, DocId, Doc, Req, Db) ->
     case couch_query_servers:render_doc_update(Lang, UpdateSrc, 
         DocId, Doc, Req, Db) of
     [<<"up">>, {NewJsonDoc}, JsonResp] ->
@@ -416,7 +416,7 @@
         end,
         NewDoc = couch_doc:from_json_obj({NewJsonDoc}),
         Code = 201,
-        {ok, NewRev} = couch_db:update_doc(Db, NewDoc, Options);
+        {ok, _NewRev} = couch_db:update_doc(Db, NewDoc, Options);
     [<<"up">>, _Other, JsonResp] ->
         Code = 200,
         ok



Mime
View raw message