From 24e223dc27ab704e35dc275f568e9035069b81c2 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 18 May 2014 21:31:39 +0200 Subject: [PATCH] WINGs: remove unreachable code in paintMenuEntry (Coverity #50042) As pointed by coverity, the case 'index < 0' cannot be true because it was already earlier and handled with an early return. Signed-off-by: Christophe CURIS --- WINGs/wpopupbutton.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/WINGs/wpopupbutton.c b/WINGs/wpopupbutton.c index ef7af090..1a8156b4 100644 --- a/WINGs/wpopupbutton.c +++ b/WINGs/wpopupbutton.c @@ -344,8 +344,6 @@ static void paintMenuEntry(PopUpButton * bPtr, int index, int highlight) if (!highlight) { XClearArea(scr->display, bPtr->menuView->window, 0, index * itemHeight, width, itemHeight, False); return; - } else if (index < 0 && bPtr->flags.pullsDown) { - return; } XFillRectangle(scr->display, bPtr->menuView->window, WMColorGC(scr->white),