Skip to content

Commit 208b803

Browse files
authored
CSHARP-5242: Remove explain leftovers (#1427)
* CSHARP-5242: Remove explain leftovers * Removed tests
1 parent 7b6612f commit 208b803

File tree

6 files changed

+1
-873
lines changed

6 files changed

+1
-873
lines changed

src/MongoDB.Driver/Core/Operations/AggregateExplainOperation.cs

Lines changed: 0 additions & 143 deletions
This file was deleted.

src/MongoDB.Driver/Core/Operations/AggregateOperation.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -327,21 +327,6 @@ public async Task<IAsyncCursor<TResult>> ExecuteAsync(RetryableReadContext conte
327327
}
328328
}
329329

330-
/// <summary>
331-
/// Returns an AggregateExplainOperation for this AggregateOperation.
332-
/// </summary>
333-
/// <param name="verbosity">The verbosity.</param>
334-
/// <returns>An AggregateExplainOperation.</returns>
335-
public IReadOperation<BsonDocument> ToExplainOperation(ExplainVerbosity verbosity)
336-
{
337-
return new AggregateExplainOperation(_collectionNamespace, _pipeline, _messageEncoderSettings)
338-
{
339-
AllowDiskUse = _allowDiskUse,
340-
Collation = _collation,
341-
MaxTime = _maxTime
342-
};
343-
}
344-
345330
internal BsonDocument CreateCommand(ConnectionDescription connectionDescription, ICoreSession session)
346331
{
347332
var readConcern = ReadConcernHelper.GetReadConcernForCommand(session, connectionDescription, _readConcern);

src/MongoDB.Driver/Core/Operations/ExplainOperation.cs

Lines changed: 0 additions & 162 deletions
This file was deleted.

src/MongoDB.Driver/Core/Operations/FindOperation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
namespace MongoDB.Driver.Core.Operations
3131
{
32-
internal sealed class FindOperation<TDocument> : IReadOperation<IAsyncCursor<TDocument>>, IExecutableInRetryableReadContext<IAsyncCursor<TDocument>>, IExplainableOperation
32+
internal sealed class FindOperation<TDocument> : IReadOperation<IAsyncCursor<TDocument>>, IExecutableInRetryableReadContext<IAsyncCursor<TDocument>>
3333
{
3434
#region static
3535
// private static fields

0 commit comments

Comments
 (0)