diff --git a/src/iocore/cache/CacheHttp.cc b/src/iocore/cache/CacheHttp.cc index b1d7b57f348..4c48db5adb0 100644 --- a/src/iocore/cache/CacheHttp.cc +++ b/src/iocore/cache/CacheHttp.cc @@ -63,27 +63,6 @@ CacheHTTPInfoVector::insert(CacheHTTPInfo *info, int index) return index; } -/*------------------------------------------------------------------------- - -------------------------------------------------------------------------*/ - -void -CacheHTTPInfoVector::detach(int idx, CacheHTTPInfo *r) -{ - int i; - - ink_assert(idx >= 0); - ink_assert(idx < xcount); - - r->copy_shallow(&data[idx].alternate); - data[idx].alternate.destroy(); - - for (i = idx; i < (xcount - 1); i++) { - data[i] = data[i + i]; - } - - xcount -= 1; -} - /*------------------------------------------------------------------------- -------------------------------------------------------------------------*/ diff --git a/src/iocore/cache/P_CacheHttp.h b/src/iocore/cache/P_CacheHttp.h index 6a30b15b5ed..77f84713202 100644 --- a/src/iocore/cache/P_CacheHttp.h +++ b/src/iocore/cache/P_CacheHttp.h @@ -50,7 +50,6 @@ struct CacheHTTPInfoVector { } int insert(CacheHTTPInfo *info, int id = -1); CacheHTTPInfo *get(int idx); - void detach(int idx, CacheHTTPInfo *r); void remove(int idx, bool destroy); void clear(bool destroy = true); void