From c13236c2e60da09d52b13fe5220fd0834220e0c1 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 1 Mar 2014 15:58:23 +0100 Subject: [PATCH] WPrefs: Completely removed function 'makeTitledIcon' that did nothing Signed-off-by: Christophe CURIS --- WPrefs.app/WPrefs.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/WPrefs.app/WPrefs.c b/WPrefs.app/WPrefs.c index de59cdfa..31192aaa 100644 --- a/WPrefs.app/WPrefs.c +++ b/WPrefs.app/WPrefs.c @@ -443,15 +443,9 @@ void CreateImages(WMScreen *scr, RContext *rc, RImage *xis, const char *file, } -static WMPixmap *makeTitledIcon(WMPixmap *icon) -{ - return WMRetainPixmap(icon); -} - void SetButtonAlphaImage(WMScreen *scr, WMButton *bPtr, const char *file) { WMPixmap *icon; - WMPixmap *icon2; RColor color; char *iconPath; @@ -469,18 +463,7 @@ void SetButtonAlphaImage(WMScreen *scr, WMButton *bPtr, const char *file) icon = NULL; } - if (icon) { - icon2 = makeTitledIcon(icon); - if (icon) - WMReleasePixmap(icon); - } else { - icon2 = NULL; - } - - WMSetButtonImage(bPtr, icon2); - - if (icon2) - WMReleasePixmap(icon2); + WMSetButtonImage(bPtr, icon); color.red = 0xff; color.green = 0xff;