]> git.ipfire.org Git - thirdparty/git.git/commit - daemon.c
pkt-line.[ch]: remove unused packet_read_line_buf()
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 14 Oct 2021 20:15:12 +0000 (22:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Oct 2021 20:09:40 +0000 (13:09 -0700)
commitec9a37d69b4b327c08668bb897f27f25276a5b1c
treeafda2bad028cbea60a5a17811a9d8fe3815fbc84
parent4f1d3e3e3b35b7fef1763a59f59b369b9674cfc9
pkt-line.[ch]: remove unused packet_read_line_buf()

This function was added in 4981fe750b1 (pkt-line: share
buffer/descriptor reading implementation, 2013-02-23), but in
01f9ec64c8a (Use packet_reader instead of packet_read_line,
2018-12-29) the code that was using it was removed.

Since it's being removed we can in turn remove the "src" and "src_len"
arguments to packet_read(), all the remaining users just passed a
NULL/NULL pair to it.

That function is only a thin wrapper for packet_read_with_status()
which still needs those arguments, but for the thin packet_read()
convenience wrapper we can do away with it for now.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout--worker.c
daemon.c
parallel-checkout.c
pkt-line.c
pkt-line.h
remote-curl.c