Skip to content
Open
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
21 changes: 0 additions & 21 deletions src/iocore/cache/CacheHttp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*-------------------------------------------------------------------------
-------------------------------------------------------------------------*/

Expand Down
1 change: 0 additions & 1 deletion src/iocore/cache/P_CacheHttp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down