diff --git a/LibGit2Sharp/PackBuilder.cs b/LibGit2Sharp/PackBuilder.cs index 02ea76dc7..1f797c9bf 100644 --- a/LibGit2Sharp/PackBuilder.cs +++ b/LibGit2Sharp/PackBuilder.cs @@ -11,7 +11,6 @@ namespace LibGit2Sharp public sealed class PackBuilder : IDisposable { private readonly PackBuilderSafeHandle packBuilderHandle; - private readonly Repository repo; /// /// Constructs a PackBuilder for a . @@ -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); } /// @@ -79,7 +77,7 @@ public void AddRecursively(ObjectId id) /// /// Disposes the PackBuilder object. /// - public void Dispose() + void IDisposable.Dispose() { packBuilderHandle.SafeDispose(); } @@ -143,6 +141,9 @@ public struct PackBuilderResults /// public sealed class PackBuilderOptions { + private string path; + private int nThreads; + /// /// Constructor /// @@ -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; @@ -197,10 +198,6 @@ public int MaximumNumberOfThreads { return nThreads; } - } - - private string path; - private int nThreads; } }