Skip to content

Commit 81ca6bb

Browse files
committed
Removed unused options field
1 parent 22e4616 commit 81ca6bb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/main/com/mongodb/DBCollectionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ QueryResultIterator find(DBObject ref, DBObject fields, int numToSkip, int batch
8383

8484
Response res = db.getConnector().call(_db, this, query, null, 2, readPref, decoder);
8585

86-
return new QueryResultIterator(db, this, res, batchSize, limit, options, decoder);
86+
return new QueryResultIterator(db, this, res, batchSize, limit, decoder);
8787
}
8888

8989
public Cursor aggregate(final List<DBObject> pipeline, final AggregationOptions options,

src/main/com/mongodb/QueryResultIterator.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class QueryResultIterator implements Cursor {
3333
private final DBApiLayer _db;
3434
private final DBDecoder _decoder;
3535
private final DBCollectionImpl _collection;
36-
private final int _options;
3736
private final ServerAddress _host;
3837
private final int _limit;
3938

@@ -53,13 +52,11 @@ class QueryResultIterator implements Cursor {
5352
private boolean batchSizeTrackingDisabled;
5453

5554
// Constructor to use for normal queries
56-
QueryResultIterator(DBApiLayer db, DBCollectionImpl collection, Response res, int batchSize, int limit,
57-
int options, DBDecoder decoder){
55+
QueryResultIterator(DBApiLayer db, DBCollectionImpl collection, Response res, int batchSize, int limit, DBDecoder decoder) {
5856
this._db = db;
5957
_collection = collection;
6058
_batchSize = batchSize;
6159
_limit = limit;
62-
_options = options;
6360
_host = res._host;
6461
_decoder = decoder;
6562
initFromQueryResponse(res);
@@ -73,7 +70,6 @@ class QueryResultIterator implements Cursor {
7370
_batchSize = batchSize;
7471
_host = serverAddress;
7572
_limit = 0;
76-
_options = 0;
7773
_decoder = decoder;
7874
initFromCursorDocument(cursorDocument);
7975
}

0 commit comments

Comments
 (0)