Skip to content

Commit

Permalink
Maintenance: Remove unused file_write_mbuf() (#1913)
Browse files Browse the repository at this point in the history
  • Loading branch information
yadij authored and squid-anubis committed Oct 10, 2024
1 parent 0e4873f commit 07f1e91
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions src/fs_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/fs_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class dwrite_q
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);

Expand Down

0 comments on commit 07f1e91

Please sign in to comment.