From 26b956720c35e9b07535c43bc0b35cd0d5de6c99 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Sat, 4 Aug 2018 15:22:55 -0300 Subject: [PATCH] remove unused function --- include/bounce/common/template/list.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/bounce/common/template/list.h b/include/bounce/common/template/list.h index 396ee7c..58c00b6 100644 --- a/include/bounce/common/template/list.h +++ b/include/bounce/common/template/list.h @@ -76,6 +76,25 @@ public: ++m_count; } + void PushAfter(T* prev, T* link) + { + link->m_prev = prev; + + if (prev->m_next == NULL) + { + link->m_next = NULL; + } + else + { + link->m_next = prev->m_next; + prev->m_next->m_prev = link; + } + + prev->m_next = link; + + ++m_count; + } + void Remove(T* link) { if (link->m_prev)