Skip to content

Commit 7ac274d

Browse files
committed
cleaning up mono warnings.
1 parent 74c4634 commit 7ac274d

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/MongoDB.Driver.Tests/FindFluentTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void CountAsync_should_not_throw_a_null_reference_exception()
3434
{
3535
var subject = CreateSubject();
3636

37-
var result = subject.CountAsync().GetAwaiter().GetResult();
37+
subject.CountAsync().GetAwaiter().GetResult();
3838

3939
_collection.Received().CountAsync(
4040
subject.Filter,

src/MongoDB.Driver/Linq/Processors/MethodCallBinders/AnyBinder.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public override Expression Bind(ProjectionExpression projection, ProjectionBindi
6363

6464
private LambdaExpression CreateSyncAggregator()
6565
{
66-
var sourceType = typeof(IEnumerable<int>);
6766
var sourceParameter = Expression.Parameter(typeof(IEnumerable<int>), "source");
6867
return Expression.Lambda(
6968
Expression.Call(
@@ -76,7 +75,6 @@ private LambdaExpression CreateSyncAggregator()
7675

7776
private static LambdaExpression CreateAsyncAggregator()
7877
{
79-
var sourceType = typeof(IAsyncCursor<int>);
8078
var sourceParameter = Expression.Parameter(typeof(Task<IAsyncCursor<int>>), "source");
8179
var cancellationTokenParameter = Expression.Parameter(typeof(CancellationToken), "ct");
8280
return Expression.Lambda(

src/MongoDB.Driver/Linq/Processors/MethodCallBinders/ImmediateResultBinderBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ private static LambdaExpression CreateSyncAggregator(string aggregatorName, Type
3838
{
3939
var sourceType = typeof(IEnumerable<>).MakeGenericType(returnType);
4040
var sourceParameter = Expression.Parameter(sourceType, "source");
41-
var cancellationTokenParameter = Expression.Parameter(typeof(CancellationToken), "ct");
4241
return Expression.Lambda(
4342
Expression.Call(typeof(Enumerable),
4443
aggregatorName,

0 commit comments

Comments
 (0)