From 86315bc8c229aeb81038af71b80594e8aa7aef29 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Tue, 5 Dec 2023 13:56:56 +0100 Subject: [PATCH] remove a premature optimization that caused problems --- src/runtime/c/pgf/phrasetable.cxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/runtime/c/pgf/phrasetable.cxx b/src/runtime/c/pgf/phrasetable.cxx index ed0d6db6c..e4c6dc866 100644 --- a/src/runtime/c/pgf/phrasetable.cxx +++ b/src/runtime/c/pgf/phrasetable.cxx @@ -474,16 +474,12 @@ PgfPhrasetable phrasetable_delete(PgfPhrasetable table, PgfPhrasetable left = phrasetable_delete(table->left, container, seq_index, seq); - if (left == table->left) - return table; table = Node::upd_node(table,left,table->right); return Node::balanceR(table); } else if (cmp > 0) { PgfPhrasetable right = phrasetable_delete(table->right, container, seq_index, seq); - if (right == table->right) - return table; table = Node::upd_node(table,table->left,right); return Node::balanceL(table); } else {