3rdparty: Drop xcursor write hook

It's unused.
This commit is contained in:
Vlad Zahorodnii 2024-05-21 14:27:52 +03:00
parent 40a9f08dd3
commit d655b5a994

View file

@ -185,7 +185,6 @@ typedef struct _XcursorFile XcursorFile;
struct _XcursorFile {
void *closure;
int (*read) (XcursorFile *file, unsigned char *buf, int len);
int (*write) (XcursorFile *file, unsigned char *buf, int len);
int (*seek) (XcursorFile *file, long offset, int whence);
};
@ -553,13 +552,6 @@ _XcursorStdioFileRead (XcursorFile *file, unsigned char *buf, int len)
return fread (buf, 1, len, f);
}
static int
_XcursorStdioFileWrite (XcursorFile *file, unsigned char *buf, int len)
{
FILE *f = file->closure;
return fwrite (buf, 1, len, f);
}
static int
_XcursorStdioFileSeek (XcursorFile *file, long offset, int whence)
{
@ -572,7 +564,6 @@ _XcursorStdioFileInitialize (FILE *stdfile, XcursorFile *file)
{
file->closure = stdfile;
file->read = _XcursorStdioFileRead;
file->write = _XcursorStdioFileWrite;
file->seek = _XcursorStdioFileSeek;
}