Skip to content

Commit

Permalink
remove a premature optimization that caused problems
Browse files Browse the repository at this point in the history
  • Loading branch information
krangelov committed Dec 5, 2023
1 parent 2631f0a commit 86315bc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/runtime/c/pgf/phrasetable.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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<PgfPhrasetableEntry>::upd_node(table,left,table->right);
return Node<PgfPhrasetableEntry>::balanceR(table);
} else if (cmp > 0) {
PgfPhrasetable right = phrasetable_delete(table->right,
container, seq_index,
seq);
if (right == table->right)
return table;
table = Node<PgfPhrasetableEntry>::upd_node(table,table->left,right);
return Node<PgfPhrasetableEntry>::balanceL(table);
} else {
Expand Down

0 comments on commit 86315bc

Please sign in to comment.