File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ namespace LibGit2Sharp
11
11
public sealed class PackBuilder : IDisposable
12
12
{
13
13
private readonly PackBuilderSafeHandle packBuilderHandle ;
14
- private readonly Repository repo ;
15
14
16
15
/// <summary>
17
16
/// Constructs a PackBuilder for a <see cref="Repository"/>.
@@ -20,8 +19,7 @@ internal PackBuilder(Repository repository)
20
19
{
21
20
Ensure . ArgumentNotNull ( repository , "repository" ) ;
22
21
23
- repo = repository ;
24
- packBuilderHandle = Proxy . git_packbuilder_new ( repo . Handle ) ;
22
+ packBuilderHandle = Proxy . git_packbuilder_new ( repository . Handle ) ;
25
23
}
26
24
27
25
/// <summary>
@@ -151,6 +149,9 @@ public struct PackBuilderResults
151
149
/// </summary>
152
150
public sealed class PackBuilderOptions
153
151
{
152
+ private string path ;
153
+ private int nThreads ;
154
+
154
155
/// <summary>
155
156
/// Constructor
156
157
/// </summary>
@@ -196,7 +197,7 @@ public int MaximumNumberOfThreads
196
197
{
197
198
if ( value < 0 )
198
199
{
199
- throw new ArgumentException ( "Argument can not be negative" , "MaximumNumberOfThreads " ) ;
200
+ throw new ArgumentException ( "Argument can not be negative" , "value " ) ;
200
201
}
201
202
202
203
nThreads = value ;
@@ -205,10 +206,6 @@ public int MaximumNumberOfThreads
205
206
{
206
207
return nThreads ;
207
208
}
208
-
209
209
}
210
-
211
- private string path ;
212
- private int nThreads ;
213
210
}
214
211
}
You can’t perform that action at this time.
0 commit comments