Skip to content
  • Jeff King's avatar
    xdiff-interface: drop parse_hunk_header() · 5eade074
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    5eade074