From: Rodolfo García Peñas (kix) Date: Sat, 10 Nov 2012 18:25:56 +0000 (+0100) Subject: get_default_image_path unused argument X-Git-Tag: wmaker-0.95.4~53 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/f38e5e40c827b7a0aefa76a7a48912348cd8bc66 get_default_image_path unused argument The function get_default_image_path has the WScreen argument that is not used, so can be removed. The function could be static, but perhaps is interesting leave it as public. --- diff --git a/src/defaults.h b/src/defaults.h index 197b9ab4..a2b9f24b 100644 --- a/src/defaults.h +++ b/src/defaults.h @@ -41,7 +41,7 @@ void wDefaultFillAttributes(char *instance, char *class, WWindowAttributes *attr, WWindowAttributes *mask, Bool useGlobalDefault); -char *get_default_image_path(WScreen *scr); +char *get_default_image_path(void); RImage *get_default_image(WScreen *scr); char *wDefaultGetIconFile(char *instance, char *class, Bool default_icon); diff --git a/src/wdefaults.c b/src/wdefaults.c index 4000085e..a613a310 100644 --- a/src/wdefaults.c +++ b/src/wdefaults.c @@ -413,7 +413,7 @@ char *get_icon_filename(WScreen *scr, char *winstance, char *wclass, char *comma } if (!file_path && default_icon) - file_path = get_default_image_path(scr); + file_path = get_default_image_path(); return file_path; } @@ -438,7 +438,7 @@ RImage *get_rimage_from_file(WScreen *scr, char *file_name, int max_size) /* This function returns the default icon's full path * If the path for an icon is not found, returns NULL */ -char *get_default_image_path(WScreen *scr) +char *get_default_image_path(void) { char *path = NULL, *file = NULL; @@ -457,7 +457,7 @@ RImage *get_default_image(WScreen *scr) char *path = NULL; /* Get the filename full path */ - path = get_default_image_path(scr); + path = get_default_image_path(); if (!path) return NULL;