From 032f6587d9fba057744209bc5b3b819b5bfd6b08 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 25 Apr 2015 12:44:27 +0200 Subject: [PATCH] WINGs: remove useless function call in WColorPanel (Coverity #109617) As reported by Coverity, the function 'customSetPalette' is making a call to 'WMGetPopUpButtonSelectedItem', but this function does nothing to the widget but only return a value, which is not used at all, so this patch removes the call to the function. Signed-off-by: Christophe CURIS --- WINGs/wcolorpanel.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/WINGs/wcolorpanel.c b/WINGs/wcolorpanel.c index f23c91d2..8aea1df9 100644 --- a/WINGs/wcolorpanel.c +++ b/WINGs/wcolorpanel.c @@ -2867,8 +2867,6 @@ static void customSetPalette(W_ColorPanel * panel) panel->palXRatio = (double)(panel->customPaletteImg->width) / (double)(customPaletteWidth); panel->palYRatio = (double)(panel->customPaletteImg->height) / (double)(customPaletteHeight); - - WMGetPopUpButtonSelectedItem(panel->customPaletteHistoryBtn); } static void customPalettePositionSelection(W_ColorPanel * panel, int x, int y)