We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 967de13 commit 4955a52Copy full SHA for 4955a52
lib/aggregation_cursor.js
@@ -3,7 +3,6 @@
3
const MongoError = require('./core').MongoError;
4
const Cursor = require('./cursor');
5
const CursorState = require('./core/cursor').CursorState;
6
-const deprecate = require('util').deprecate;
7
8
/**
9
* @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
AggregationCursor.prototype.get = AggregationCursor.prototype.toArray;
227
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
235
* AggregationCursor stream data event, fired for each document in the cursor.
236
*
0 commit comments