add last backwards-compatible version

This commit is contained in:
2021-12-14 00:33:46 -07:00
parent 68b10d413b
commit b0dd3f07f3
335 changed files with 4746 additions and 19627 deletions

View File

@@ -194,7 +194,6 @@ namespace pfc {
int result = compare(p_base->m_content,p_search);
if (result > 0) {
t_node * ret = g_find_or_add_node<t_search>(p_base->m_left,p_base.get_ptr(),p_search,p_new);
PFC_ASSERT(compare(ret->m_content, p_search) == 0);
if (p_new) {
recalc_depth(p_base);
g_rebalance(p_base);
@@ -202,7 +201,6 @@ namespace pfc {
return ret;
} else if (result < 0) {
t_node * ret = g_find_or_add_node<t_search>(p_base->m_right,p_base.get_ptr(),p_search,p_new);
PFC_ASSERT(compare(ret->m_content, p_search) == 0);
if (p_new) {
recalc_depth(p_base);
g_rebalance(p_base);