Skip to content

Commit 98612b0

Browse files
committed
code_style: remove unused code
Signed-off-by: leo <[email protected]>
1 parent e3c0f7d commit 98612b0

File tree

4 files changed

+5
-28
lines changed

4 files changed

+5
-28
lines changed

src/Views/Blame.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,9 @@ private void OnTextViewVisualLinesChanged(object sender, EventArgs e)
429429
}
430430

431431
public partial class Blame : ChromelessWindow
432-
{
432+
{
433433
public Blame()
434-
{
434+
{
435435
InitializeComponent();
436436
}
437437

src/Views/BranchCompare.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
namespace SourceGit.Views
55
{
66
public partial class BranchCompare : ChromelessWindow
7-
{
7+
{
88
public BranchCompare()
9-
{
9+
{
1010
InitializeComponent();
1111
}
1212

src/Views/FileHistories.axaml.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
using System;
2-
3-
using Avalonia;
41
using Avalonia.Controls;
52
using Avalonia.Input;
63
using Avalonia.Interactivity;
@@ -9,30 +6,10 @@ namespace SourceGit.Views
96
{
107
public partial class FileHistories : ChromelessWindow
118
{
12-
public static readonly StyledProperty<bool> HasLeftCaptionButtonProperty =
13-
AvaloniaProperty.Register<FileHistories, bool>(nameof(HasLeftCaptionButton));
14-
15-
public bool HasLeftCaptionButton
16-
{
17-
get => GetValue(HasLeftCaptionButtonProperty);
18-
set => SetValue(HasLeftCaptionButtonProperty, value);
19-
}
20-
219
public FileHistories()
2210
{
23-
if (OperatingSystem.IsMacOS())
24-
HasLeftCaptionButton = true;
25-
2611
InitializeComponent();
2712
}
28-
29-
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
30-
{
31-
base.OnPropertyChanged(change);
32-
33-
if (change.Property == WindowStateProperty)
34-
HasLeftCaptionButton = WindowState != WindowState.FullScreen;
35-
}
3613

3714
private void OnPressCommitSHA(object sender, PointerPressedEventArgs e)
3815
{

src/Views/Launcher.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public GridLength CaptionHeight
1919
get => GetValue(CaptionHeightProperty);
2020
set => SetValue(CaptionHeightProperty, value);
2121
}
22-
22+
2323
public static readonly StyledProperty<bool> HasLeftCaptionButtonProperty =
2424
AvaloniaProperty.Register<Launcher, bool>(nameof(HasLeftCaptionButton));
2525

0 commit comments

Comments
 (0)