From: "Rodolfo García Peñas (kix)" <[email protected]>

The function get_rimage_icon_from_wm_hints is not used anymore,
so can be removed.
---
 src/icon.c |   21 ---------------------
 src/icon.h |    1 -
 2 files changed, 22 deletions(-)

diff --git a/src/icon.c b/src/icon.c
index 80631cb..ab0e690 100644
--- a/src/icon.c
+++ b/src/icon.c
@@ -735,27 +735,6 @@ static void set_dockapp_in_icon(WIcon *icon)
                                  None, wCursor[WCUR_ARROW]);
 }
 
-/* Get the RImage from the XWindow wm_hints */
-RImage *get_rimage_icon_from_wm_hints(WWindow *wwin)
-{
-       RImage *image = NULL;
-       unsigned int w, h, d;
-
-       if (!getSize(wwin->wm_hints->icon_pixmap, &w, &h, &d)) {
-               wwin->wm_hints->flags &= ~IconPixmapHint;
-               return NULL;
-       }
-
-       image = get_wwindow_image_from_wm_hints(wwin);
-       if (!image)
-               return NULL;
-
-       /* Resize the icon to the wPreferences.icon_size size */
-       image = wIconValidateIconSize(image, wPreferences.icon_size);
-
-       return image;
-}
-
 void wIconPaint(WIcon *icon)
 {
        WScreen *scr = icon->core->screen_ptr;
diff --git a/src/icon.h b/src/icon.h
index abe3038..099f592 100644
--- a/src/icon.h
+++ b/src/icon.h
@@ -67,7 +67,6 @@ void set_icon_for_window(WWindow *wwin, WIcon *icon);
 Bool wIconChangeImageFile(WIcon *icon, char *file);
 
 RImage *wIconValidateIconSize(RImage *icon, int max_size);
-RImage *get_rimage_icon_from_wm_hints(WWindow *wwin);
 RImage *get_wwindow_image_from_wm_hints(WWindow *wwin);
 RImage *get_rimage_from_default(WScreen *scr);
 
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to