MCPcopy Create free account
hub / github.com/apache/trafficserver / remove

Method remove

include/tscore/List.h:368–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366
367template <class C, class L>
368inline void
369DLL<C, L>::remove(C *e)
370{
371 if (!head) {
372 return;
373 }
374 if (e == head) {
375 head = next(e);
376 }
377 if (prev(e)) {
378 next(prev(e)) = next(e);
379 }
380 if (next(e)) {
381 prev(next(e)) = prev(e);
382 }
383 prev(e) = nullptr;
384 next(e) = nullptr;
385}
386
387template <class C, class L>
388inline C *

Callers 1

handle_file_inputFunction · 0.45

Calls 2

removeFunction · 0.85
prevMethod · 0.45

Tested by

no test coverage detected