1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Remove unused function getRImages()

Pointed out by Nicolas Bonifas.
This commit is contained in:
Carlos R. Mafra
2009-12-06 14:49:00 +01:00
parent 3db3f179d1
commit e7cc15df71

View File

@@ -2301,41 +2301,6 @@ static int getModMask(WScreen * scr, WDefaultEntry * entry, WMPropList * value,
return True;
}
#ifdef NEWSTUFF
static int getRImages(WScreen * scr, WDefaultEntry * entry, WMPropList * value, void *addr, void **ret)
{
unsigned int mask;
char *str;
RImage *image;
int i, n;
int w, h;
GET_STRING_OR_DEFAULT("Image File Path", str);
if (!str)
return False;
image = RLoadImage(scr->rcontext, str, 0);
if (!image) {
wwarning(_("could not load image in option %s: %s"), entry->key, RMessageForError(RErrorCode));
return False;
}
if (*(RImage **) addr) {
RReleaseImage(*(RImage **) addr);
}
if (addr)
*(RImage **) addr = image;
assert(ret == NULL);
/*
if (ret)
*(RImage**)ret = image;
*/
return True;
}
#endif
# include <X11/cursorfont.h>
typedef struct {
char *name;