1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 12:00:31 +01:00

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 <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2014-05-18 21:31:39 +02:00
committed by Carlos R. Mafra
parent ab3057c68d
commit 24e223dc27

View File

@@ -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),