File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,6 @@ for(var name in CoreCursor.prototype) {
173
173
* @method
174
174
* @param {Cursor~resultCallback } [callback] The result callback.
175
175
* @throws {MongoError }
176
- * @deprecated
177
176
* @return {Promise } returns Promise if no callback passed
178
177
*/
179
178
Cursor . prototype . hasNext = function ( callback ) {
@@ -204,7 +203,6 @@ Cursor.prototype.hasNext = function(callback) {
204
203
* @method
205
204
* @param {Cursor~resultCallback } [callback] The result callback.
206
205
* @throws {MongoError }
207
- * @deprecated
208
206
* @return {Promise } returns Promise if no callback passed
209
207
*/
210
208
Cursor . prototype . next = function ( callback ) {
@@ -609,16 +607,6 @@ var loop = function(self, callback) {
609
607
return loop ;
610
608
}
611
609
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
-
622
610
/**
623
611
* Iterates over all the documents for this cursor. As with **{cursor.toArray}**,
624
612
* not all of the elements will be iterated if this cursor had been previouly accessed.
Original file line number Diff line number Diff line change @@ -708,8 +708,6 @@ exports['should correctly execute findAndModify methods using crud api'] = {
708
708
db . collection ( 't5_1' ) . findOneAndDelete ( { a :1 }
709
709
, { projection : { b :1 } , sort : { a :1 } }
710
710
, function ( err , r ) {
711
- console . log ( "------------------------------------------------ findOneAndDelete" )
712
- console . dir ( r )
713
711
test . equal ( null , err ) ;
714
712
test . equal ( 1 , r . lastErrorObject . n ) ;
715
713
test . equal ( 1 , r . value . b ) ;
@@ -736,8 +734,6 @@ exports['should correctly execute findAndModify methods using crud api'] = {
736
734
, upsert : true
737
735
}
738
736
, function ( err , r ) {
739
- console . log ( "------------------------------------------------ findOneAndReplace" )
740
- console . dir ( r )
741
737
test . equal ( null , err ) ;
742
738
test . equal ( 1 , r . lastErrorObject . n ) ;
743
739
test . equal ( 1 , r . value . b ) ;
@@ -765,8 +761,6 @@ exports['should correctly execute findAndModify methods using crud api'] = {
765
761
, upsert : true
766
762
}
767
763
, function ( err , r ) {
768
- console . log ( "------------------------------------------------ findOneAndUpdate" )
769
- console . dir ( r )
770
764
test . equal ( null , err ) ;
771
765
test . equal ( 1 , r . lastErrorObject . n ) ;
772
766
test . equal ( 1 , r . value . b ) ;
You can’t perform that action at this time.
0 commit comments