mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-11 23:57:21 -08:00
code_style: remove unused codes
This commit is contained in:
parent
d1d913aa45
commit
6b44fd4416
2 changed files with 2 additions and 12 deletions
|
@ -521,7 +521,7 @@ namespace SourceGit
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var args = desktop.Args;
|
var args = desktop.Args;
|
||||||
if (args.Length > 0)
|
if (args?.Length > 0)
|
||||||
{
|
{
|
||||||
desktop.MainWindow = new Views.Askpass(args[0]);
|
desktop.MainWindow = new Views.Askpass(args[0]);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -837,24 +837,14 @@ namespace SourceGit.ViewModels
|
||||||
var hasUnsolvedConflict = _workingCopy.SetData(changes);
|
var hasUnsolvedConflict = _workingCopy.SetData(changes);
|
||||||
var inProgress = null as InProgressContext;
|
var inProgress = null as InProgressContext;
|
||||||
|
|
||||||
var rebaseMergeFolder = Path.Combine(_gitDir, "rebase-merge");
|
|
||||||
var rebaseApplyFolder = Path.Combine(_gitDir, "rebase-apply");
|
|
||||||
if (File.Exists(Path.Combine(_gitDir, "CHERRY_PICK_HEAD")))
|
if (File.Exists(Path.Combine(_gitDir, "CHERRY_PICK_HEAD")))
|
||||||
{
|
|
||||||
inProgress = new CherryPickInProgress(_fullpath);
|
inProgress = new CherryPickInProgress(_fullpath);
|
||||||
}
|
else if (File.Exists(Path.Combine(_gitDir, "REBASE_HEAD")) && Directory.Exists(Path.Combine(_gitDir, "rebase-merge")))
|
||||||
else if (File.Exists(Path.Combine(_gitDir, "REBASE_HEAD")) && Directory.Exists(rebaseMergeFolder))
|
|
||||||
{
|
|
||||||
inProgress = new RebaseInProgress(this);
|
inProgress = new RebaseInProgress(this);
|
||||||
}
|
|
||||||
else if (File.Exists(Path.Combine(_gitDir, "REVERT_HEAD")))
|
else if (File.Exists(Path.Combine(_gitDir, "REVERT_HEAD")))
|
||||||
{
|
|
||||||
inProgress = new RevertInProgress(_fullpath);
|
inProgress = new RevertInProgress(_fullpath);
|
||||||
}
|
|
||||||
else if (File.Exists(Path.Combine(_gitDir, "MERGE_HEAD")))
|
else if (File.Exists(Path.Combine(_gitDir, "MERGE_HEAD")))
|
||||||
{
|
|
||||||
inProgress = new MergeInProgress(_fullpath);
|
inProgress = new MergeInProgress(_fullpath);
|
||||||
}
|
|
||||||
|
|
||||||
Dispatcher.UIThread.Invoke(() =>
|
Dispatcher.UIThread.Invoke(() =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue