gitk: Get rid of idrowranges and rowrangelist
commit92ed666fa761554c67c8f883863517870a65376d
authorPaul Mackerras <paulus@samba.org>
Wed, 22 Aug 2007 12:35:28 +0000 (22 22:35 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 22 Aug 2007 12:35:28 +0000 (22 22:35 +1000)
treebd86288c9c57ac8775c31774bb2f8b743f5bc8f4
parent42b09269fd27afacf2febd59895789c92fd417fe
gitk: Get rid of idrowranges and rowrangelist

Instead make the rowranges procedure compute its result by looking
in the rowidlist entries for the rows around the children of the id
and the id itself.  This turns out not to take too long, and not having
to maintain idrowranges and rowrangelist speeds up the layout.

This also makes optimize_rows not use rowranges, since all it really
needed was a way to work out if one id is the first child of another,
so it can just look at the children list.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk