mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
refactor: remove duplicate ObjectConverters, remove unused using
This commit is contained in:
parent
f4e1e0fb6b
commit
54c9552985
3 changed files with 2 additions and 20 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue