From d655b5a994bb62caf40a92c4c11c1903f386e441 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 21 May 2024 14:27:52 +0300 Subject: [PATCH] 3rdparty: Drop xcursor write hook It's unused. --- src/3rdparty/xcursor.c | 9 --------- 1 file changed, 9 deletions(-) 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; }