mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
code_style: remove unused code
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
c529fab869
commit
c0c52695a3
3 changed files with 7 additions and 9 deletions
|
@ -1,4 +1,3 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
|
@ -54,13 +54,13 @@ namespace SourceGit.ViewModels
|
||||||
{
|
{
|
||||||
if (_selected == null)
|
if (_selected == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var idx = Workspaces.IndexOf(_selected);
|
var idx = Workspaces.IndexOf(_selected);
|
||||||
if (idx == 0)
|
if (idx == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Workspaces.Move(idx - 1, idx);
|
Workspaces.Move(idx - 1, idx);
|
||||||
|
|
||||||
Preferences.Instance.Workspaces.RemoveAt(idx);
|
Preferences.Instance.Workspaces.RemoveAt(idx);
|
||||||
Preferences.Instance.Workspaces.Insert(idx - 1, _selected);
|
Preferences.Instance.Workspaces.Insert(idx - 1, _selected);
|
||||||
}
|
}
|
||||||
|
@ -69,13 +69,13 @@ namespace SourceGit.ViewModels
|
||||||
{
|
{
|
||||||
if (_selected == null)
|
if (_selected == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var idx = Workspaces.IndexOf(_selected);
|
var idx = Workspaces.IndexOf(_selected);
|
||||||
if (idx == Workspaces.Count - 1)
|
if (idx == Workspaces.Count - 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Workspaces.Move(idx + 1, idx);
|
Workspaces.Move(idx + 1, idx);
|
||||||
|
|
||||||
Preferences.Instance.Workspaces.RemoveAt(idx);
|
Preferences.Instance.Workspaces.RemoveAt(idx);
|
||||||
Preferences.Instance.Workspaces.Insert(idx + 1, _selected);
|
Preferences.Instance.Workspaces.Insert(idx + 1, _selected);
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,7 +177,7 @@ namespace SourceGit.Views
|
||||||
var rules = IssueTrackerRules ?? [];
|
var rules = IssueTrackerRules ?? [];
|
||||||
foreach (var rule in rules)
|
foreach (var rule in rules)
|
||||||
rule.Matches(_elements, subject);
|
rule.Matches(_elements, subject);
|
||||||
|
|
||||||
_elements.Sort((l, r) => l.Start - r.Start);
|
_elements.Sort((l, r) => l.Start - r.Start);
|
||||||
_needRebuildInlines = true;
|
_needRebuildInlines = true;
|
||||||
InvalidateVisual();
|
InvalidateVisual();
|
||||||
|
@ -319,7 +319,6 @@ namespace SourceGit.Views
|
||||||
foreground);
|
foreground);
|
||||||
|
|
||||||
_inlines.Add(new Inline(x, normal, null));
|
_inlines.Add(new Inline(x, normal, null));
|
||||||
x += normal.WidthIncludingTrailingWhitespace;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue