Skip to content

Commit ae7cdc5

Browse files
committed
Refactor: Remove commented-out constructor code
1 parent 9568931 commit ae7cdc5

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Spectron.Debugger/Controls/HexViewer.axaml.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,11 @@ public class HexViewer : TemplatedControl
1818
AvaloniaProperty.Register<HexViewer, double>(nameof(CellWidth), DefaultCellWight);
1919

2020
public static readonly StyledProperty<IEnumerable<byte>> DataProperty =
21-
AvaloniaProperty.Register<HexViewer, IEnumerable<byte>>(nameof(Data), Array.Empty<byte>());
21+
AvaloniaProperty.Register<HexViewer, IEnumerable<byte>>(nameof(Data), []);
2222

2323
private static readonly StyledProperty<int> BytesPerRowProperty =
2424
AvaloniaProperty.Register<HexViewer, int>(nameof(BytesPerRow), DefaultBytesPerRow, validate: i => i > 0);
2525

26-
// public HexViewer()
27-
// {
28-
// var random = new Random(1000);
29-
// var data = new byte[65536]; // Example size
30-
// random.NextBytes(data);
31-
// Data = data;
32-
// }
33-
3426
public double CellHeight
3527
{
3628
get => GetValue(CellHeightProperty);

0 commit comments

Comments
 (0)