From d726977bfa8d73ac8928c5379dd5b5c50ae2c38f Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Tue, 11 Aug 2009 23:38:43 +0000 Subject: silence compiler warnings, don't use unused variables git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803325 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd_show.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/couchdb/couch_httpd_show.erl b/src/couchdb/couch_httpd_show.erl index 01bf0055..27fd9703 100644 --- a/src/couchdb/couch_httpd_show.erl +++ b/src/couchdb/couch_httpd_show.erl @@ -65,13 +65,13 @@ handle_doc_update_req(#httpd{ 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 @@ send_doc_show_response(Lang, ShowSrc, DocId, #doc{revs=Revs}=Doc, #httpd{mochi_r 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 @@ send_doc_update_response(Lang, UpdateSrc, DocId, Doc, #httpd{mochi_req=MReq}=Req 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 -- cgit v1.2.3