Skip to content

Commit

Permalink
Misc PackBuilder cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk committed Oct 22, 2015
1 parent a579a09 commit e9db9e8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions LibGit2Sharp/PackBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace LibGit2Sharp
public sealed class PackBuilder : IDisposable
{
private readonly PackBuilderSafeHandle packBuilderHandle;
private readonly Repository repo;

/// <summary>
/// Constructs a PackBuilder for a <see cref="Repository"/>.
Expand All @@ -20,8 +19,7 @@ internal PackBuilder(Repository repository)
{
Ensure.ArgumentNotNull(repository, "repository");

repo = repository;
packBuilderHandle = Proxy.git_packbuilder_new(repo.Handle);
packBuilderHandle = Proxy.git_packbuilder_new(repository.Handle);
}

/// <summary>
Expand Down Expand Up @@ -143,6 +141,9 @@ public struct PackBuilderResults
/// </summary>
public sealed class PackBuilderOptions
{
private string path;
private int nThreads;

/// <summary>
/// Constructor
/// </summary>
Expand Down Expand Up @@ -188,7 +189,7 @@ public int MaximumNumberOfThreads
{
if (value < 0)
{
throw new ArgumentException("Argument can not be negative", "MaximumNumberOfThreads");
throw new ArgumentException("Argument can not be negative", "value");
}

nThreads = value;
Expand All @@ -197,10 +198,6 @@ public int MaximumNumberOfThreads
{
return nThreads;
}

}

private string path;
private int nThreads;
}
}

0 comments on commit e9db9e8

Please sign in to comment.