aboutsummaryrefslogtreecommitdiff
path: root/lib/diff.tcl
diff options
context:
space:
mode:
authorMark Levedahl <mlevedahl@gmail.com>2024-02-16 18:24:06 -0500
committerMark Levedahl <mlevedahl@gmail.com>2025-07-18 23:48:34 -0400
commit4e3369f0f6125ad58986170b92530e9eff9fbc97 (patch)
treee15fd821e8d436038e1968ee05b6ef49a7ed1ffd /lib/diff.tcl
parented73388f538d681e1da5c9be9d02b7f17a5e4e57 (diff)
downloadgit-4e3369f0f6125ad58986170b92530e9eff9fbc97.tar.xz
git-gui: remove unreachable Tk 8.4 code
git-gui has remnant code to allow some drawing with Tk 8.4 predating the addition of themed widgets. As git-gui requires Tk >= 8.6, this code can never trigger. Remove it. Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Diffstat (limited to 'lib/diff.tcl')
-rw-r--r--lib/diff.tcl8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/diff.tcl b/lib/diff.tcl
index 84f0468c7c..9df555c505 100644
--- a/lib/diff.tcl
+++ b/lib/diff.tcl
@@ -2,15 +2,13 @@
# Copyright (C) 2006, 2007 Shawn Pearce
proc apply_tab_size {{firsttab {}}} {
- global have_tk85 repo_config ui_diff
+ global repo_config ui_diff
set w [font measure font_diff "0"]
- if {$have_tk85 && $firsttab != 0} {
+ if {$firsttab != 0} {
$ui_diff configure -tabs [list [expr {$firsttab * $w}] [expr {($firsttab + $repo_config(gui.tabsize)) * $w}]]
- } elseif {$have_tk85 || $repo_config(gui.tabsize) != 8} {
- $ui_diff configure -tabs [expr {$repo_config(gui.tabsize) * $w}]
} else {
- $ui_diff configure -tabs {}
+ $ui_diff configure -tabs [expr {$repo_config(gui.tabsize) * $w}]
}
}