textbtree: Remove unnecessary check

Since a93614409e we don't allocate the
stack anymore, so this NULL check is unnecessary now - and it's flagged
by compilers.
This commit is contained in:
Benjamin Otte
2023-07-10 06:18:44 +02:00
parent 1f3db35271
commit aa82a400df

View File

@@ -3769,8 +3769,7 @@ _gtk_text_line_char_index (GtkTextLine *target_line)
tos--;
/* Check that we have the root node on top of the stack. */
g_assert (node_stack != NULL &&
node_stack[tos] != NULL &&
g_assert (node_stack[tos] != NULL &&
node_stack[tos]->parent == NULL);
/* Add up chars in all nodes before the nodes in our stack.