File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 3
3
const MongoError = require ( './core' ) . MongoError ;
4
4
const Cursor = require ( './cursor' ) ;
5
5
const CursorState = require ( './core/cursor' ) . CursorState ;
6
- const deprecate = require ( 'util' ) . deprecate ;
7
6
8
7
/**
9
8
* @fileOverview The **AggregationCursor** class is an internal class that embodies an aggregation cursor on MongoDB
@@ -225,12 +224,6 @@ class AggregationCursor extends Cursor {
225
224
// aliases
226
225
AggregationCursor . prototype . get = AggregationCursor . prototype . toArray ;
227
226
228
- // deprecated methods
229
- deprecate (
230
- AggregationCursor . prototype . geoNear ,
231
- 'The `$geoNear` stage is deprecated in MongoDB 4.0, and removed in version 4.2.'
232
- ) ;
233
-
234
227
/**
235
228
* AggregationCursor stream data event, fired for each document in the cursor.
236
229
*
You can’t perform that action at this time.
0 commit comments