Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions plugins/esi/combo_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -572,18 +572,6 @@ getDefaultBucket(TSHttpTxn /* txnp ATS_UNUSED */, TSMBuffer bufp, TSMLoc hdr_obj
creq.defaultBucket = string(host, host_len);
defaultBucketFound = true;

/*
for(int i = 0 ; i < host_len; i++)
{
if (host[i] == '.')
{
creq.defaultBucket = string(host, i);
defaultBucketFound = true;
break;
}
}
*/

TSHandleMLocRelease(bufp, hdr_obj, field_loc);

LOG_DEBUG("defaultBucket: %s", creq.defaultBucket.data());
Expand Down
8 changes: 0 additions & 8 deletions plugins/esi/esi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ ContData::~ContData()
static int
removeCacheHandler(TSCont contp, TSEvent /* event ATS_UNUSED */, void * /* edata ATS_UNUSED */)
{
// TSDebug(DEBUG_TAG, "[%s] event: %d", __FUNCTION__, (int)event);
TSContDestroy(contp);
// just ignore cache remove message
return 0;
Expand Down Expand Up @@ -1339,13 +1338,6 @@ isCacheObjTransformable(TSHttpTxn txnp, bool *intercept_header, bool *head_only)
return false;
}
if (obj_status == TS_CACHE_LOOKUP_HIT_FRESH) {
/*
time_t respTime;
if (TSHttpTxnCachedRespTimeGet(txnp, &respTime) == TS_SUCCESS) {
TSError("[%s] RespTime; %d", __FUNCTION__, (int)respTime);
}
*/

TSDebug(DEBUG_TAG, "[%s] doc found in cache, will add transformation", __FUNCTION__);
return isTxnTransformable(txnp, true, intercept_header, head_only);
}
Expand Down
4 changes: 0 additions & 4 deletions plugins/esi/lib/EsiParser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ EsiParser::_compareData(const string &data, size_t pos, const char *str, int str
return COMPLETE_MATCH;
}
} else {
/*
_debugLog(_debug_tag, "[%s] string [%.*s] is not equal to data at position %d",
__FUNCTION__, str_len, str, pos);
*/
return NO_MATCH;
}
}
Expand Down
9 changes: 0 additions & 9 deletions plugins/esi/lib/Stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ namespace Stats
for (int i = 0; i < Stats::MAX_STAT_ENUM; ++i) {
// FIXME doesn't return a value.
g_system->create(i);
/* if (!g_system->create(i)) {
Utils::ERROR_LOG("[%s] Unable to create stat [%s]", __FUNCTION__, Stats::STAT_NAMES[i]);
}*/
}
}
}
Expand All @@ -58,12 +55,6 @@ namespace Stats
if (g_system) {
// FIXME doesn't return a value.
g_system->increment(st, step);
/*
if (!g_system->increment(st, step)) {
Utils::ERROR_LOG("[%s] Unable to increment stat [%s] by step [%d]", __FUNCTION__, step,
Stats::STAT_NAMES[st]);
}
*/
}
}
} // namespace Stats
Expand Down
7 changes: 0 additions & 7 deletions plugins/esi/lib/Variables.cc
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,6 @@ Variables::_parseCookieString(const char *str, int str_len)
void
Variables::_parseUserAgentString(const char * /* str ATS_UNUSED */, int /* str_len ATS_UNUSED */)
{
/*
string user_agent_str(str, str_len); // need NULL-terminated version
// TODO - code was here
char version_buf[64];
// TODO - code was here
_insert(_dict_data[HTTP_USER_AGENT], VERSION_STRING, version_buf);
*/
}

void
Expand Down
8 changes: 1 addition & 7 deletions plugins/esi/test/vars_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/

#include <cstdio>
#include <iostream>
#include <cassert>
Expand Down Expand Up @@ -137,13 +138,6 @@ main()
"Gecko/20091201 Firefox/3.5.6 (.NETgecko CLR 3.5.30729)",
-1));

/*
assert(esi_vars.getValue("HTTP_USER_AGENT{vendor}") == "Gecko");
assert(esi_vars.getValue("HTTP_USER_AGENT{platform}") == "windows_xp");
assert(esi_vars.getValue("HTTP_USER_AGENT{version}") == "1.9");
assert(esi_vars.getValue("HTTP_USER_AGENT{blah}") == "");
*/

assert(esi_vars.getValue("HTTP_ACCEPT_LANGUAGE{ka-in}") == "true");

esi_vars.clear();
Expand Down