summaryrefslogtreecommitdiff
path: root/xdiff-interface.h
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2018-11-02 02:40:13 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-11-05 13:14:35 +0900
commit5eade0746e1daf659a9559d804068f9f31614625 (patch)
treeb82842386fcfd001c7bd89a972af6d0da42f1b39 /xdiff-interface.h
parentrange-diff: use a hunk callback (diff)
downloadtgif-5eade0746e1daf659a9559d804068f9f31614625.tar.xz
xdiff-interface: drop parse_hunk_header()
This function was used only for parsing the hunk headers generated by xdiff. Now that we can use hunk callbacks to get that information directly, it has outlived its usefulness. Note to anyone who wants to resurrect it: the "len" parameter was totally unused, meaning that the function could read past the end of the "line" array. In practice this never happened, because we only used it to parse xdiff's generated header lines. But it would be dangerous to use it for other cases without fixing this defect. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff-interface.h')
-rw-r--r--xdiff-interface.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/xdiff-interface.h b/xdiff-interface.h
index 8af245eed9..2d41fffd4c 100644
--- a/xdiff-interface.h
+++ b/xdiff-interface.h
@@ -23,9 +23,6 @@ int xdi_diff_outf(mmfile_t *mf1, mmfile_t *mf2,
xdiff_emit_line_fn line_fn,
void *consume_callback_data,
xpparam_t const *xpp, xdemitconf_t const *xecfg);
-int parse_hunk_header(char *line, int len,
- int *ob, int *on,
- int *nb, int *nn);
int read_mmfile(mmfile_t *ptr, const char *filename);
void read_mmblob(mmfile_t *ptr, const struct object_id *oid);
int buffer_is_binary(const char *ptr, unsigned long size);