Skip to content

Commit 901760d

Browse files
committed
Remove unused helper method in test code
1 parent 5f2395d commit 901760d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

driver-core/src/test/functional/com/mongodb/internal/operation/QueryOperationHelper.groovy

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ import static com.mongodb.ClusterFixture.getServerApi
3737
import static com.mongodb.ClusterFixture.serverVersionLessThan
3838

3939
class QueryOperationHelper {
40-
static BsonDocument sanitizeExplainResult(BsonDocument document) {
41-
document.remove('ok')
42-
document.remove('millis')
43-
document.remove('executionStats')
44-
document.remove('serverInfo')
45-
document.remove('executionTimeMillis')
46-
document.remove('operationTime')
47-
document.remove('$clusterTime')
48-
document
49-
}
5040

5141
static BsonDocument getKeyPattern(BsonDocument explainPlan) {
5242
BsonDocument winningPlan = explainPlan.getDocument('queryPlanner').getDocument('winningPlan')
@@ -87,7 +77,7 @@ class QueryOperationHelper {
8777
if (e.getErrorCode() == 43) {
8878
throw new MongoCursorNotFoundException(serverCursor.getId(), e.getResponse(), serverCursor.getAddress())
8979
} else {
90-
throw new MongoQueryException(e.getResponse(), e.getServerAddress());
80+
throw new MongoQueryException(e.getResponse(), e.getServerAddress())
9181
}
9282
}
9383
}

0 commit comments

Comments
 (0)