File tree 1 file changed +5
-8
lines changed
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>
@@ -143,6 +141,9 @@ public struct PackBuilderResults
143
141
/// </summary>
144
142
public sealed class PackBuilderOptions
145
143
{
144
+ private string path ;
145
+ private int nThreads ;
146
+
146
147
/// <summary>
147
148
/// Constructor
148
149
/// </summary>
@@ -188,7 +189,7 @@ public int MaximumNumberOfThreads
188
189
{
189
190
if ( value < 0 )
190
191
{
191
- throw new ArgumentException ( "Argument can not be negative" , "MaximumNumberOfThreads " ) ;
192
+ throw new ArgumentException ( "Argument can not be negative" , "value " ) ;
192
193
}
193
194
194
195
nThreads = value ;
@@ -197,10 +198,6 @@ public int MaximumNumberOfThreads
197
198
{
198
199
return nThreads ;
199
200
}
200
-
201
201
}
202
-
203
- private string path ;
204
- private int nThreads ;
205
202
}
206
203
}
You can’t perform that action at this time.
0 commit comments