3rdparty: Drop xcursor write hook
It's unused.
This commit is contained in:
parent
40a9f08dd3
commit
d655b5a994
1 changed files with 0 additions and 9 deletions
9
src/3rdparty/xcursor.c
vendored
9
src/3rdparty/xcursor.c
vendored
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue