summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Doane <jaydoane@apache.org>2021-05-31 12:58:25 -0700
committerJay Doane <jay.s.doane@gmail.com>2021-05-31 21:13:48 -0700
commit90b230e7f47a3368452daa4f51bd8858c9ccdd00 (patch)
tree4c33f4d67e205bbba2c10a6839d8b3292bd178b9
parent288caff4ba53bfb573e172c0b0362b848a020efc (diff)
downloadcouchdb-90b230e7f47a3368452daa4f51bd8858c9ccdd00.tar.gz
Delete unused chttpd_show:apply_etag/2 function
This code is generating an unused function compilation warning.
-rw-r--r--src/chttpd/src/chttpd_show.erl12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/chttpd/src/chttpd_show.erl b/src/chttpd/src/chttpd_show.erl
index 9fda7ff89..fb7124712 100644
--- a/src/chttpd/src/chttpd_show.erl
+++ b/src/chttpd/src/chttpd_show.erl
@@ -100,18 +100,6 @@ json_apply_field({Key, NewValue}, [], Acc) ->
% end of list, add ours
{[{Key, NewValue}|Acc]}.
-apply_etag(JsonResp, undefined) ->
- JsonResp;
-apply_etag({ExternalResponse}, CurrentEtag) ->
- % Here we embark on the delicate task of replacing or creating the
- % headers on the JsonResponse object. We need to control the Etag and
- % Vary headers. If the external function controls the Etag, we'd have to
- % run it to check for a match, which sort of defeats the purpose.
- apply_headers(ExternalResponse, [
- {<<"ETag">>, CurrentEtag},
- {<<"Vary">>, <<"Accept">>}
- ]).
-
apply_headers(JsonResp, []) ->
JsonResp;
apply_headers(JsonResp, NewHeaders) ->