Cleanup of unused symcache variable inside diff-lib.c
commitff7e6aad6d995a52e88cfeaae10cf8a768ff2358
authorKjetil Barvik <barvik@broadpark.no>
Sun, 11 Jan 2009 18:36:42 +0000 (11 19:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 11 Jan 2009 23:56:55 +0000 (11 15:56 -0800)
tree7b214329753e3481aa2b23e801b62fd117bbf9ef
parent9002ec3ae6299dc7872033ba7f6c3cebf2f2c3c1
Cleanup of unused symcache variable inside diff-lib.c

Commit c40641b77b0274186fd1b327d5dc3246f814aaaf, 'Optimize
symlink/directory detection' by Linus Torvalds, removed the 'char
*symcache' parameter to the has_symlink_leading_path() function.  This
made all variables currently named 'symcache' inside diff-lib.c
unnecessary.

This also let us throw away the 'struct oneway_unpack_data', and
instead directly use the 'struct rev_info *revs' member, which
was the only member left after removal of the 'symcache[] array'
member.  The 'struct oneway_unpack_data' was introduced by the
following commit:

  948dd346  "diff-files: careful when inspecting work tree items"

Impact: cleanup
        PATH_MAX bytes less memory stack usage in some cases

Signed-off-by: Kjetil Barvik <barvik@broadpark.no>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c