From de26127d2bba546d9954bb322c4343ee451f4c5c Mon Sep 17 00:00:00 2001 From: David Calavera Date: Tue, 10 Mar 2020 13:45:31 -0700 Subject: [PATCH] Remove method that does nothing. Long time ago, this method used to do something, but not anymore. Signed-off-by: David Calavera --- include/tscpp/api/Url.h | 8 -------- src/tscpp/api/Url.cc | 5 ----- src/tscpp/api/utils_internal.cc | 1 - 3 files changed, 14 deletions(-) diff --git a/include/tscpp/api/Url.h b/include/tscpp/api/Url.h index cf4b85914a0..c01b8da6439 100644 --- a/include/tscpp/api/Url.h +++ b/include/tscpp/api/Url.h @@ -124,14 +124,6 @@ class Url : noncopyable */ void setPort(const uint16_t); - /** - * This method allows you to reset the url, this will force the Url to fully re-read all cached values. - * If this method is used on a Detached Requests' Url object it will completely destroy the values. - * - * \note This method should rarely be used. - */ - void reset(); - private: bool isInitialized() const; void init(void *hdr_buf, void *url_loc); diff --git a/src/tscpp/api/Url.cc b/src/tscpp/api/Url.cc index a8f7144176e..c8e043081a6 100644 --- a/src/tscpp/api/Url.cc +++ b/src/tscpp/api/Url.cc @@ -63,11 +63,6 @@ bool inline Url::isInitialized() const return state_->hdr_buf_ && state_->url_loc_; } -void -Url::reset() -{ -} - std::string Url::getUrlString() const { diff --git a/src/tscpp/api/utils_internal.cc b/src/tscpp/api/utils_internal.cc index 923c48d961a..af7666926f4 100644 --- a/src/tscpp/api/utils_internal.cc +++ b/src/tscpp/api/utils_internal.cc @@ -61,7 +61,6 @@ handleTransactionEvents(TSCont cont, TSEvent event, void *edata) utils::internal::setTransactionEvent(transaction, event); switch (event) { case TS_EVENT_HTTP_POST_REMAP: - transaction.getClientRequest().getUrl().reset(); // This is here to force a refresh of the cached client request url TSMBuffer hdr_buf; TSMLoc hdr_loc;