From: "Randall S. Becker" <rsbecker@xxxxxxxxxxxxx> strbuf_write_fd was only used in bugreport.c. Since that file now uses write_in_full, this method is no longer needed. Signed-off-by: Randall S. Becker <rsbecker@xxxxxxxxxxxxx> --- strbuf.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/strbuf.c b/strbuf.c index 2f1a7d3209..e3397cc4c7 100644 --- a/strbuf.c +++ b/strbuf.c @@ -556,11 +556,6 @@ ssize_t strbuf_write(struct strbuf *sb, FILE *f) return sb->len ? fwrite(sb->buf, 1, sb->len, f) : 0; } -ssize_t strbuf_write_fd(struct strbuf *sb, int fd) -{ - return sb->len ? write(fd, sb->buf, sb->len) : 0; -} - #define STRBUF_MAXLINK (2*PATH_MAX) int strbuf_readlink(struct strbuf *sb, const char *path, size_t hint) -- 2.21.0