You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2015/05/05 06:00:39 UTC

trafficserver git commit: Remove unnecessary HttpCacheSM::{get, set}_lookup_url.

Repository: trafficserver
Updated Branches:
  refs/heads/master 261d0742e -> f28840c08


Remove unnecessary HttpCacheSM::{get,set}_lookup_url.

The second cache SM gets passed to HttpSM::do_cache_prepare_action().
This calls HttpCacheSM::open_write() which sets the lookup URL in
the HttpCacheSM.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/f28840c0
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f28840c0
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f28840c0

Branch: refs/heads/master
Commit: f28840c085120a2acf94ebe1dcb3df90e6261a0d
Parents: 261d074
Author: James Peach <jp...@apache.org>
Authored: Mon May 4 20:49:10 2015 -0700
Committer: James Peach <jp...@apache.org>
Committed: Mon May 4 20:54:49 2015 -0700

----------------------------------------------------------------------
 proxy/http/HttpCacheSM.h | 10 ----------
 proxy/http/HttpSM.h      |  1 -
 2 files changed, 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f28840c0/proxy/http/HttpCacheSM.h
----------------------------------------------------------------------
diff --git a/proxy/http/HttpCacheSM.h b/proxy/http/HttpCacheSM.h
index e6bcb63..d0ed2ad 100644
--- a/proxy/http/HttpCacheSM.h
+++ b/proxy/http/HttpCacheSM.h
@@ -141,16 +141,6 @@ public:
     close_read();
     abort_write();
   }
-  inline URL *
-  get_lookup_url()
-  {
-    return lookup_url;
-  }
-  inline void
-  set_lookup_url(URL *url)
-  {
-    lookup_url = url;
-  }
 
 private:
   void do_schedule_in();

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f28840c0/proxy/http/HttpSM.h
----------------------------------------------------------------------
diff --git a/proxy/http/HttpSM.h b/proxy/http/HttpSM.h
index 16844ce..852f847 100644
--- a/proxy/http/HttpSM.h
+++ b/proxy/http/HttpSM.h
@@ -631,7 +631,6 @@ HttpSM::add_cache_sm()
   if (second_cache_sm == NULL) {
     second_cache_sm = new HttpCacheSM;
     second_cache_sm->init(this, mutex);
-    second_cache_sm->set_lookup_url(cache_sm.get_lookup_url());
     if (t_state.cache_info.object_read != NULL) {
       second_cache_sm->cache_read_vc = cache_sm.cache_read_vc;
       cache_sm.cache_read_vc = NULL;