From: Benjamin Otte Date: Mon, 10 Jul 2023 04:18:44 +0000 (+0200) Subject: textbtree: Remove unnecessary check X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~66^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=aa82a400dfb3eaf28da96cd106efc27eeee0c55e;p=gtk4.git textbtree: Remove unnecessary check Since a93614409ed79e1297469bdc1de3cb69663de71e we don't allocate the stack anymore, so this NULL check is unnecessary now - and it's flagged by compilers. --- diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index 4166083967..66ba20abdf 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -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.