mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +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
|
@ -54,13 +54,13 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
if (_selected == null)
|
||||
return;
|
||||
|
||||
|
||||
var idx = Workspaces.IndexOf(_selected);
|
||||
if (idx == 0)
|
||||
return;
|
||||
|
||||
|
||||
Workspaces.Move(idx - 1, idx);
|
||||
|
||||
|
||||
Preferences.Instance.Workspaces.RemoveAt(idx);
|
||||
Preferences.Instance.Workspaces.Insert(idx - 1, _selected);
|
||||
}
|
||||
|
@ -69,13 +69,13 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
if (_selected == null)
|
||||
return;
|
||||
|
||||
|
||||
var idx = Workspaces.IndexOf(_selected);
|
||||
if (idx == Workspaces.Count - 1)
|
||||
return;
|
||||
|
||||
|
||||
Workspaces.Move(idx + 1, idx);
|
||||
|
||||
|
||||
Preferences.Instance.Workspaces.RemoveAt(idx);
|
||||
Preferences.Instance.Workspaces.Insert(idx + 1, _selected);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue