]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: Remove unused file_write_mbuf() (#1913)
authorAmos Jeffries <yadij@users.noreply.github.com>
Thu, 10 Oct 2024 05:47:43 +0000 (05:47 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 10 Oct 2024 14:58:56 +0000 (14:58 +0000)
src/fs_io.cc
src/fs_io.h

index 609e03a43d6b3b9278311bc3fce4b68e24496a78..057fab7e04dc6c8f706f3676634fdfd2140fb40e 100644 (file)
@@ -366,16 +366,6 @@ file_write(int fd,
     }
 }
 
-/*
- * a wrapper around file_write to allow for MemBuf to be file_written
- * in a snap
- */
-void
-file_write_mbuf(int fd, off_t off, MemBuf mb, DWCB * handler, void *handler_data)
-{
-    file_write(fd, off, mb.buf, mb.size, handler, handler_data, mb.freeFunc());
-}
-
 /* Read from FD */
 static void
 diskHandleRead(int fd, void *data)
index 39645002daab93e20f4e3dfa70d749c05e90f404..e81c355780ea8c7992769464e41891ae4f9ac5ab 100644 (file)
@@ -45,7 +45,6 @@ public:
 int file_open(const char *path, int mode);
 void file_close(int fd);
 void file_write(int, off_t, void const *, int len, DWCB *, void *, FREE *);
-void file_write_mbuf(int fd, off_t, MemBuf mb, DWCB * handler, void *handler_data);
 void file_read(int, char *, int, off_t, DRCB *, void *);
 void safeunlink(const char *path, int quiet);