summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-08-11 23:38:43 +0000
committerJan Lehnardt <jan@apache.org>2009-08-11 23:38:43 +0000
commitd726977bfa8d73ac8928c5379dd5b5c50ae2c38f (patch)
treea69a20ae3afa3c96acfad810970747702492ae88 /src
parent641c1417dc41a11434d7e2bcd9cbe01663e4af2e (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd_show.erl12
1 files 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