[gtk/pvs-fixes: 6/11] composetable: Remove a redundant check




commit e91e75173d0650293345694e263d038ee9f5588b
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 4 00:22:52 2021 -0500

    composetable: Remove a redundant check
    
    We already know seq_index is not NULL here.
    
    Pointed out in https://www.viva64.com/en/b/0793/

 gtk/gtkcomposetable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkcomposetable.c b/gtk/gtkcomposetable.c
index a07f5da06f..c5261f8a63 100644
--- a/gtk/gtkcomposetable.c
+++ b/gtk/gtkcomposetable.c
@@ -1038,7 +1038,7 @@ gtk_compose_table_compact_check (const GtkComposeTableCompact  *table,
   if (!seq_index)
     return FALSE;
 
-  if (seq_index && n_compose == 1)
+  if (n_compose == 1)
     return TRUE;
 
   seq = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]