diff --git a/src/3rdparty/xcursor.c b/src/3rdparty/xcursor.c index 1d8a12009e..690aac3e35 100644 --- a/src/3rdparty/xcursor.c +++ b/src/3rdparty/xcursor.c @@ -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; }