git-gui: Remove unused commit_list from blame viewer
This list used to store the commits in the order we received them in. I originally was using it to update the colors of the commit before and the commit after the current commit, but since that interface concept turned out to be horribly ugly and has been removed we no longer need this list. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jun 2, 2007 at 14:45 UTC
b61101579fdc647c14a54105a361b549a97c09a4
1 file changed
+1
-4
lib/blame.tcl
+1
-4
@@ -25,8 +25,7 @@ field highlight_commit {} ; # sha1 of commit selected
25
26
field total_lines 0 ; # total length of file
27
field blame_lines 0 ; # number of lines computed
28
-field commit_count 0 ; # number of commits in $commit_list
29
-field commit_list {} ; # list of commit sha1 in receipt order
28
+field commit_count 0 ; # number of commits loaded
29
field order ; # array commit -> receipt order
30
field header ; # array commit,key -> header field
31
field line_commit ; # array line -> sha1 commit
@@ -309,7 +308,6 @@ method _load {} {
308
set total_lines 0
309
set blame_lines 0
310
set commit_count 0
312
- set commit_list {}
311
array unset order
312
array unset line_commit
313
array unset line_file
@@ -478,7 +476,6 @@ method _read_blame {fd} {
476
477
set order($cmit) $commit_count
478
incr commit_count
481
- lappend commit_list $cmit
479
}
480
} elseif {[string match {filename *} $line]} {
481
set file [string range $line 9 end]