From 9d98c5758751ea766b7c67347520dfcebd219e84 Mon Sep 17 00:00:00 2001 From: Kit Chan Date: Mon, 20 Oct 2014 00:00:39 -0700 Subject: [PATCH] TS-3147 remove unused variables --- plugins/experimental/esi/esi.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/experimental/esi/esi.cc b/plugins/experimental/esi/esi.cc index be8cb60e5fe..ce355b51d9c 100644 --- a/plugins/experimental/esi/esi.cc +++ b/plugins/experimental/esi/esi.cc @@ -1085,7 +1085,6 @@ modifyResponseHeader(TSCont contp, TSEvent event, void *edata) { TSMLoc field_loc; const char *name, *value; int name_len, value_len; - bool have_content_length = false; for (int i = 0; i < n_mime_headers; ++i) { field_loc = TSMimeHdrFieldGet(bufp, hdr_loc, i); if (!field_loc) { @@ -1115,7 +1114,6 @@ modifyResponseHeader(TSCont contp, TSEvent event, void *edata) { } else if (Utils::areEqual(name, name_len, TS_MIME_FIELD_CONTENT_LENGTH, TS_MIME_LEN_CONTENT_LENGTH)) { - have_content_length = true; if (mod_data->head_only) { destroy_header = true; TSError("[%s] remove Content-Length", __FUNCTION__);