Skip to content

Commit df35466

Browse files
committed
code_style: remove unused parameter
Signed-off-by: leo <longshuang@msn.cn>
1 parent d22b95a commit df35466

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Views/Histories.axaml.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -850,11 +850,11 @@ private ContextMenu CreateContextMenuForSingleCommit(ViewModels.Repository repo,
850850
break;
851851
case Models.DecoratorType.LocalBranchHead:
852852
var lb = repo.Branches.Find(x => x.IsLocal && d.Name.Equals(x.Name, StringComparison.Ordinal));
853-
FillOtherLocalBranchMenu(menu, repo, lb, current, commit.IsMerged);
853+
FillOtherLocalBranchMenu(menu, repo, lb, current);
854854
break;
855855
case Models.DecoratorType.RemoteBranchHead:
856856
var rb = repo.Branches.Find(x => !x.IsLocal && d.Name.Equals(x.FriendlyName, StringComparison.Ordinal));
857-
FillRemoteBranchMenu(menu, repo, rb, current, commit.IsMerged);
857+
FillRemoteBranchMenu(menu, repo, rb, current);
858858
break;
859859
case Models.DecoratorType.Tag:
860860
var t = repo.Tags.Find(x => d.Name.Equals(x.Name, StringComparison.Ordinal));
@@ -871,7 +871,7 @@ private ContextMenu CreateContextMenuForSingleCommit(ViewModels.Repository repo,
871871
if (tags.Count > 0)
872872
{
873873
foreach (var tag in tags)
874-
FillTagMenu(menu, repo, tag, current, commit.IsMerged);
874+
FillTagMenu(menu, repo, tag, current);
875875
menu.Items.Add(new MenuItem() { Header = "-" });
876876
}
877877

@@ -1417,7 +1417,7 @@ private void FillCurrentBranchMenu(ContextMenu menu, ViewModels.Repository repo,
14171417
menu.Items.Add(submenu);
14181418
}
14191419

1420-
private void FillOtherLocalBranchMenu(ContextMenu menu, ViewModels.Repository repo, Models.Branch branch, Models.Branch current, bool merged)
1420+
private void FillOtherLocalBranchMenu(ContextMenu menu, ViewModels.Repository repo, Models.Branch branch, Models.Branch current)
14211421
{
14221422
var submenu = new MenuItem();
14231423
submenu.Icon = this.CreateMenuIcon("Icons.Branch");
@@ -1509,7 +1509,7 @@ private void FillOtherLocalBranchMenu(ContextMenu menu, ViewModels.Repository re
15091509
menu.Items.Add(submenu);
15101510
}
15111511

1512-
private void FillRemoteBranchMenu(ContextMenu menu, ViewModels.Repository repo, Models.Branch branch, Models.Branch current, bool merged)
1512+
private void FillRemoteBranchMenu(ContextMenu menu, ViewModels.Repository repo, Models.Branch branch, Models.Branch current)
15131513
{
15141514
if (branch == null)
15151515
return;
@@ -1573,7 +1573,7 @@ private void FillRemoteBranchMenu(ContextMenu menu, ViewModels.Repository repo,
15731573
menu.Items.Add(submenu);
15741574
}
15751575

1576-
private void FillTagMenu(ContextMenu menu, ViewModels.Repository repo, Models.Tag tag, Models.Branch current, bool merged)
1576+
private void FillTagMenu(ContextMenu menu, ViewModels.Repository repo, Models.Tag tag, Models.Branch current)
15771577
{
15781578
var submenu = new MenuItem();
15791579
submenu.Header = tag.Name;

0 commit comments

Comments
 (0)