code_style: remove unused code and run dotnet format

This commit is contained in:
leo 2024-08-23 10:28:16 +08:00
parent e6f3ab5e68
commit c1ee47a79d
No known key found for this signature in database
4 changed files with 4 additions and 6 deletions

View file

@ -255,7 +255,7 @@ namespace SourceGit.ViewModels
if (node.IsRepository || !node.IsExpanded)
continue;
MakeTreeRows(rows, node.SubNodes, depth+1);
MakeTreeRows(rows, node.SubNodes, depth + 1);
}
}

View file

@ -477,7 +477,7 @@ namespace SourceGit.Views
// Draw contents
DrawCurves(context, graph, top, bottom);
DrawAnchors(context, graph, top, bottom);
DrawAnchors(context, graph, top, bottom);
}
private void DrawCurves(DrawingContext context, Models.CommitGraph graph, double top, double bottom)
@ -598,8 +598,6 @@ namespace SourceGit.Views
}
}
}
private Geometry _mergeIcon = null;
}
public partial class Histories : UserControl

View file

@ -259,7 +259,7 @@ namespace SourceGit.Views
var dialog = new ConfirmRestart();
App.OpenDialog(dialog);
}
e.Handled = true;
}
}

View file

@ -45,7 +45,7 @@ namespace SourceGit.Views
TreeContainer.Focus(NavigationMethod.Directional);
e.Handled = true;
}
else if (e.Key == Key.F &&
else if (e.Key == Key.F &&
((OperatingSystem.IsMacOS() && e.KeyModifiers.HasFlag(KeyModifiers.Meta)) ||
(!OperatingSystem.IsMacOS() && e.KeyModifiers.HasFlag(KeyModifiers.Control))))
{