diff --git a/src/Helpers/CommitGraph.cs b/src/Helpers/CommitGraph.cs index c2f6f85d..6ee2b28e 100644 --- a/src/Helpers/CommitGraph.cs +++ b/src/Helpers/CommitGraph.cs @@ -140,11 +140,6 @@ namespace SourceGit.Helpers { /// public List Dots { get; set; } = new List(); - /// - /// Highlight commit id. - /// - public string Highlight { get; set; } - /// /// Parse commits. /// @@ -168,11 +163,6 @@ namespace SourceGit.Helpers { // 更新Y坐标 offsetY += UNIT_HEIGHT; - // 找到当前的分支的HEAD,用于默认选中 - if (maker.Highlight == null && commit.IsHEAD) { - maker.Highlight = commit.SHA; - } - // 找到第一个依赖于本提交的树,将其他依赖于本提交的树标记为终止,并对已存在的线路调整(防止线重合) double offsetX = -HALF_WIDTH; foreach (var l in unsolved) { @@ -268,11 +258,6 @@ namespace SourceGit.Helpers { } unsolved.Clear(); - // 处理默认选中异常 - if (maker.Highlight == null && commits.Count > 0) { - maker.Highlight = commits[0].SHA; - } - return maker; } } diff --git a/src/UI/Histories.xaml.cs b/src/UI/Histories.xaml.cs index 91cbcbd6..532c3282 100644 --- a/src/UI/Histories.xaml.cs +++ b/src/UI/Histories.xaml.cs @@ -169,7 +169,6 @@ namespace SourceGit.UI { maker.Dots.Clear(); commitList.ItemsSource = new List(cachedCommits); - // Navigate(maker.Highlight); SetLoadingEnabled(false); }); }