refactor: remove duplicate ObjectConverters, remove unused using

This commit is contained in:
Gadfly 2024-04-13 18:54:46 +08:00
parent f4e1e0fb6b
commit 54c9552985
No known key found for this signature in database
GPG key ID: 9128145F93CFC69C
3 changed files with 2 additions and 20 deletions

View file

@ -8,7 +8,6 @@ using Avalonia.Media.Imaging;
using Avalonia.Threading;
using CommunityToolkit.Mvvm.ComponentModel;
using SourceGit.Models;
namespace SourceGit.ViewModels
{
@ -74,10 +73,7 @@ namespace SourceGit.ViewModels
set => SetProperty(ref _fileModeDiff, value);
}
public TextTrimming PathTrimming
{
get => _pathTrimming;
}
public TextTrimming PathTrimming { get; } = new TextLeadingPrefixTrimming("...", 20);
public DiffContext(string repo, Models.DiffOption option, DiffContext previous = null)
{
@ -199,6 +195,5 @@ namespace SourceGit.ViewModels
private object _content = null;
private Vector _syncScrollOffset = Vector.Zero;
private Models.FileModeDiff _fileModeDiff = null;
private TextTrimming _pathTrimming = new TextLeadingPrefixTrimming("...", 20);
}
}