strbuf: remove unreferenced strbuf_write_fd method.
authorRandall S. Becker <redacted>
Fri, 19 Jun 2020 20:23:20 +0000 (16:23 -0400)
committerJunio C Hamano <redacted>
Fri, 19 Jun 2020 20:50:27 +0000 (13:50 -0700)
commit5f2b643e76d9a1330c1a02489c0787ca7d818633
treef5171bf1069efa7c0b0c6b7ae0416bf0999e9cab
parentf64b6a1f750e65ca90435f714d9350493aad836d
strbuf: remove unreferenced strbuf_write_fd method.

strbuf_write_fd was only used in bugreport.c. Since that file now uses
write_in_full, this method is no longer needed. In addition, strbuf_write_fd
did not guard against exceeding MAX_IO_SIZE for the platform, nor
provided error handling in the event of a failure if only partial data
was written to the file descriptor. Since already write_in_full has this
capability and is in general use, it should be used instead. The change
impacts strbuf.c and strbuf.h.

Signed-off-by: Randall S. Becker <redacted>
Signed-off-by: Junio C Hamano <redacted>
strbuf.c
strbuf.h
git clone https://git.99rst.org/PROJECT