GNOME Bugzilla – Bug 787303
gtk+-3.22.20/gtk/gtknotebook.c: 2 * redundant conditions ?
Last modified: 2017-09-12 14:23:04 UTC
1. [gtk+-3.22.20/gtk/gtknotebook.c:5955]: (style) Redundant condition: priv->operation==DRAG_OPERATION_REORDER. 'A || (!A && B)' is equivalent to 'A || B' Source code is if (priv->operation != DRAG_OPERATION_REORDER || (priv->operation == DRAG_OPERATION_REORDER && page != priv->cur_page)) 2. [gtk+-3.22.20/gtk/gtknotebook.c:5977]: (style) Redundant condition: priv->operation==DRAG_OPERATION_REORDER. 'A || (!A && B)' is equivalent to 'A || B' Duplicate.
Created attachment 359505 [details] [review] gtknotebook: Simplify some if-conditions Signed-off-by: Philip Withnall <withnall@endlessm.com>
Review of attachment 359505 [details] [review]: eh, why not
Attachment 359505 [details] pushed as 69102ac - gtknotebook: Simplify some if-conditions