Skip to content

Commit 6da75f8

Browse files
committed
fixed more docs generation issues
1 parent dde32dd commit 6da75f8

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

lib/cursor.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ for(var name in CoreCursor.prototype) {
173173
* @method
174174
* @param {Cursor~resultCallback} [callback] The result callback.
175175
* @throws {MongoError}
176-
* @deprecated
177176
* @return {Promise} returns Promise if no callback passed
178177
*/
179178
Cursor.prototype.hasNext = function(callback) {
@@ -204,7 +203,6 @@ Cursor.prototype.hasNext = function(callback) {
204203
* @method
205204
* @param {Cursor~resultCallback} [callback] The result callback.
206205
* @throws {MongoError}
207-
* @deprecated
208206
* @return {Promise} returns Promise if no callback passed
209207
*/
210208
Cursor.prototype.next = function(callback) {
@@ -609,16 +607,6 @@ var loop = function(self, callback) {
609607
return loop;
610608
}
611609

612-
/**
613-
* Get the next available document from the cursor, returns null if no more documents are available.
614-
* @method
615-
* @param {Cursor~resultCallback} [callback] The result callback.
616-
* @throws {MongoError}
617-
* @deprecated
618-
* @return {Promise} returns Promise if no callback passed
619-
*/
620-
Cursor.prototype.next = Cursor.prototype.nextObject;
621-
622610
/**
623611
* Iterates over all the documents for this cursor. As with **{cursor.toArray}**,
624612
* not all of the elements will be iterated if this cursor had been previouly accessed.

test/functional/crud_api_tests.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,6 @@ exports['should correctly execute findAndModify methods using crud api'] = {
708708
db.collection('t5_1').findOneAndDelete({a:1}
709709
, { projection: {b:1}, sort: {a:1} }
710710
, function(err, r) {
711-
console.log("------------------------------------------------ findOneAndDelete")
712-
console.dir(r)
713711
test.equal(null, err);
714712
test.equal(1, r.lastErrorObject.n);
715713
test.equal(1, r.value.b);
@@ -736,8 +734,6 @@ exports['should correctly execute findAndModify methods using crud api'] = {
736734
, upsert: true
737735
}
738736
, function(err, r) {
739-
console.log("------------------------------------------------ findOneAndReplace")
740-
console.dir(r)
741737
test.equal(null, err);
742738
test.equal(1, r.lastErrorObject.n);
743739
test.equal(1, r.value.b);
@@ -765,8 +761,6 @@ exports['should correctly execute findAndModify methods using crud api'] = {
765761
, upsert: true
766762
}
767763
, function(err, r) {
768-
console.log("------------------------------------------------ findOneAndUpdate")
769-
console.dir(r)
770764
test.equal(null, err);
771765
test.equal(1, r.lastErrorObject.n);
772766
test.equal(1, r.value.b);

0 commit comments

Comments
 (0)