summaryrefslogtreecommitdiff
path: root/strbuf.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-06-29 14:17:26 -0700
committerJunio C Hamano <gitster@pobox.com>2020-06-29 14:17:26 -0700
commit610486749aca4ce9e5923baa70b072eff69a9867 (patch)
tree1f3e76a1110c6f5aa1ead924e09dc6cd63dc1dd7 /strbuf.c
parent1ea1f93fd9c6d299cbb94f74f0a1d80cb481a449 (diff)
parent5f2b643e76d9a1330c1a02489c0787ca7d818633 (diff)
downloadgit-610486749aca4ce9e5923baa70b072eff69a9867.tar.gz
Merge branch 'rs/retire-strbuf-write-fd'
A misdesigned strbuf_write_fd() function has been retired. * rs/retire-strbuf-write-fd: strbuf: remove unreferenced strbuf_write_fd method. bugreport.c: replace strbuf_write_fd with write_in_full
Diffstat (limited to 'strbuf.c')
-rw-r--r--strbuf.c5
1 files changed, 0 insertions, 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)