Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 6cbf7c5

Browse files
committed
Remove ctor args and overloads that we don't use, disable Defer tests
1 parent f7b3ce6 commit 6cbf7c5

31 files changed

+297
-322
lines changed

src/GitHub.Api/Git/Tasks/GitAddTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class GitAddTask : ProcessTask<string>
88
private readonly string arguments;
99

1010
public GitAddTask(IEnumerable<string> files,
11-
CancellationToken token, IOutputProcessor<string> processor = null, ITask dependsOn = null)
12-
: base(token, processor ?? new SimpleOutputProcessor(), dependsOn)
11+
CancellationToken token, IOutputProcessor<string> processor = null)
12+
: base(token, processor ?? new SimpleOutputProcessor())
1313
{
1414
Guard.ArgumentNotNull(files, "files");
1515

src/GitHub.Api/Git/Tasks/GitBranchCreateTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class GitBranchCreateTask : ProcessTask<string>
88
private readonly string arguments;
99

1010
public GitBranchCreateTask(string newBranch, string baseBranch,
11-
CancellationToken token, IOutputProcessor<string> processor = null, ITask dependsOn = null)
12-
: base(token, processor ?? new SimpleOutputProcessor(), dependsOn)
11+
CancellationToken token, IOutputProcessor<string> processor = null)
12+
: base(token, processor ?? new SimpleOutputProcessor())
1313
{
1414
Guard.ArgumentNotNullOrWhiteSpace(newBranch, "newBranch");
1515
Guard.ArgumentNotNullOrWhiteSpace(baseBranch, "baseBranch");

src/GitHub.Api/Git/Tasks/GitBranchDeleteTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class GitBranchDeleteTask : ProcessTask<string>
77
private readonly string arguments;
88

99
public GitBranchDeleteTask(string branch, bool deleteUnmerged,
10-
CancellationToken token, IOutputProcessor<string> processor = null, ITask dependsOn = null)
11-
: base(token, processor ?? new SimpleOutputProcessor(), dependsOn)
10+
CancellationToken token, IOutputProcessor<string> processor = null)
11+
: base(token, processor ?? new SimpleOutputProcessor())
1212
{
1313
Guard.ArgumentNotNullOrWhiteSpace(branch, "branch");
1414
arguments = !deleteUnmerged ? $"branch -d {branch}" : $"branch -D {branch}";

src/GitHub.Api/Git/Tasks/GitCommitTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class GitCommitTask : ProcessTask<string>
88
private readonly string arguments;
99

1010
public GitCommitTask(string message, string body,
11-
CancellationToken token, IOutputProcessor<string> processor = null, ITask dependsOn = null)
12-
: base(token, processor ?? new SimpleOutputProcessor(), dependsOn)
11+
CancellationToken token, IOutputProcessor<string> processor = null)
12+
: base(token, processor ?? new SimpleOutputProcessor())
1313
{
1414
Guard.ArgumentNotNullOrWhiteSpace(message, "message");
1515

src/GitHub.Api/Git/Tasks/GitConfigGetTask.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class GitConfigGetAllTask : ProcessTaskWithListOutput<string>
88
private readonly string arguments;
99

1010
public GitConfigGetAllTask(string key, GitConfigSource configSource,
11-
CancellationToken token, BaseOutputListProcessor<string> processor = null, ITask dependsOn = null)
12-
: base(token, processor ?? new SimpleListOutputProcessor(), dependsOn)
11+
CancellationToken token, BaseOutputListProcessor<string> processor = null)
12+
: base(token, processor ?? new SimpleListOutputProcessor())
1313
{
1414
var source = "";
1515
source +=
@@ -30,8 +30,8 @@ class GitConfigGetTask : ProcessTask<string>
3030
private readonly string arguments;
3131

3232
public GitConfigGetTask(string key, GitConfigSource configSource,
33-
CancellationToken token, IOutputProcessor<string> processor = null, ITask dependsOn = null)
34-
: base(token, processor ?? new FirstNonNullLineOutputProcessor(), dependsOn)
33+
CancellationToken token, IOutputProcessor<string> processor = null)
34+
: base(token, processor ?? new FirstNonNullLineOutputProcessor())
3535
{
3636
var source = "";
3737
source +=

src/GitHub.Api/Git/Tasks/GitConfigSetTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class GitConfigSetTask : ProcessTask<string>
1111
private string label;
1212

1313
public GitConfigSetTask(string key, string value, GitConfigSource configSource,
14-
CancellationToken token, IOutputProcessor<string> processor = null, ITask dependsOn = null)
15-
: base(token, processor ?? new SimpleOutputProcessor(), dependsOn)
14+
CancellationToken token, IOutputProcessor<string> processor = null)
15+
: base(token, processor ?? new SimpleOutputProcessor())
1616
{
1717
this.value = value;
1818
var source = "";

src/GitHub.Api/Git/Tasks/GitFetchTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class GitFetchTask : ProcessTask<string>
99
private readonly string arguments;
1010

1111
public GitFetchTask(string remote,
12-
CancellationToken token, IOutputProcessor<string> processor = null, ITask dependsOn = null)
13-
: base(token, processor ?? new SimpleOutputProcessor(), dependsOn)
12+
CancellationToken token, IOutputProcessor<string> processor = null)
13+
: base(token, processor ?? new SimpleOutputProcessor())
1414
{
1515
var stringBuilder = new StringBuilder();
1616
stringBuilder.Append("fetch");

src/GitHub.Api/Git/Tasks/GitInitTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ namespace GitHub.Unity
44
{
55
class GitInitTask : ProcessTask<string>
66
{
7-
public GitInitTask(CancellationToken token, IOutputProcessor<string> processor = null, ITask dependsOn = null)
8-
: base(token, processor ?? new SimpleOutputProcessor(), dependsOn)
7+
public GitInitTask(CancellationToken token, IOutputProcessor<string> processor = null)
8+
: base(token, processor ?? new SimpleOutputProcessor())
99
{ }
1010

1111
public override string Name { get { return "git init"; } }

src/GitHub.Api/Git/Tasks/GitLfsInstallTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ namespace GitHub.Unity
44
{
55
class GitLfsInstallTask : ProcessTask<string>
66
{
7-
public GitLfsInstallTask(CancellationToken token, IOutputProcessor<string> processor = null, ITask dependsOn = null)
8-
: base(token, processor ?? new SimpleOutputProcessor(), dependsOn)
7+
public GitLfsInstallTask(CancellationToken token, IOutputProcessor<string> processor = null)
8+
: base(token, processor ?? new SimpleOutputProcessor())
99
{ }
1010

1111
public override string Name { get { return "git lfs install"; } }

src/GitHub.Api/Git/Tasks/GitListBranchesTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class GitListLocalBranchesTask : ProcessTaskWithListOutput<GitBranch>
66
{
77
private const string Arguments = "branch -vv";
88

9-
public GitListLocalBranchesTask(CancellationToken token, BaseOutputListProcessor<GitBranch> processor = null, ITask dependsOn = null)
10-
: base(token, processor ?? new BranchListOutputProcessor(), dependsOn)
9+
public GitListLocalBranchesTask(CancellationToken token, BaseOutputListProcessor<GitBranch> processor = null)
10+
: base(token, processor ?? new BranchListOutputProcessor())
1111
{
1212
}
1313

0 commit comments

Comments
 (0)