mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Remove unused function getRImages()
Pointed out by Nicolas Bonifas.
This commit is contained in:
@@ -2301,41 +2301,6 @@ static int getModMask(WScreen * scr, WDefaultEntry * entry, WMPropList * value,
|
|||||||
return True;
|
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>
|
# include <X11/cursorfont.h>
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *name;
|
char *name;
|
||||||
|
|||||||
Reference in New Issue
Block a user