This is an automated email from the ASF dual-hosted git repository.

jvanderzee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new e797ec6983 Remove dead private method from `HttpSM` (#11703)
e797ec6983 is described below

commit e797ec698324fdd2e5ac0815c4409a07e0e15a6d
Author: JosiahWI <[email protected]>
AuthorDate: Mon Aug 19 16:44:50 2024 -0500

    Remove dead private method from `HttpSM` (#11703)
    
    This removes `HttpSM::setup_transfer_from_transform_to_cache_only()` which 
is
    dead code, and not part of the class's public API.
---
 include/proxy/http/HttpSM.h |  1 -
 src/proxy/http/HttpSM.cc    | 27 ---------------------------
 2 files changed, 28 deletions(-)

diff --git a/include/proxy/http/HttpSM.h b/include/proxy/http/HttpSM.h
index 1c33cb8c0f..fd9de1719a 100644
--- a/include/proxy/http/HttpSM.h
+++ b/include/proxy/http/HttpSM.h
@@ -456,7 +456,6 @@ private:
   HttpTunnelProducer *setup_server_transfer_to_transform();
   HttpTunnelProducer *setup_transfer_from_transform();
   HttpTunnelProducer *setup_cache_transfer_to_transform();
-  HttpTunnelProducer *setup_transfer_from_transform_to_cache_only();
 
   /** Configure consumers for client response transform plugins.
    *
diff --git a/src/proxy/http/HttpSM.cc b/src/proxy/http/HttpSM.cc
index 95a806c0c5..209b5ae100 100644
--- a/src/proxy/http/HttpSM.cc
+++ b/src/proxy/http/HttpSM.cc
@@ -7081,33 +7081,6 @@ HttpSM::setup_transfer_from_transform()
   return p;
 }
 
-HttpTunnelProducer *
-HttpSM::setup_transfer_from_transform_to_cache_only()
-{
-  int64_t         alloc_index = find_server_buffer_size();
-  MIOBuffer      *buf         = new_MIOBuffer(alloc_index);
-  IOBufferReader *buf_start   = buf->alloc_reader();
-
-  HttpTunnelConsumer *c = tunnel.get_consumer(transform_info.vc);
-  ink_assert(c != nullptr);
-  ink_assert(c->vc == transform_info.vc);
-  ink_assert(c->vc_type == HT_TRANSFORM);
-
-  HTTP_SM_SET_DEFAULT_HANDLER(&HttpSM::tunnel_handler);
-
-  HttpTunnelProducer *p = tunnel.add_producer(transform_info.vc, INT64_MAX, 
buf_start, &HttpSM::tunnel_handler_transform_read,
-                                              HT_TRANSFORM, "transform read");
-  tunnel.chain(c, p);
-
-  transform_info.entry->in_tunnel = true;
-
-  ink_assert(t_state.cache_info.transform_action == 
HttpTransact::CACHE_DO_WRITE);
-
-  perform_transform_cache_write_action();
-
-  return p;
-}
-
 HttpTunnelProducer *
 HttpSM::setup_server_transfer()
 {

Reply via email to