Skip to content

Commit 4955a52

Browse files
author
Thomas Reggi
authored
fix: remove geoNear deprecation
NODE-2834
1 parent 967de13 commit 4955a52

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/aggregation_cursor.js

-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
const MongoError = require('./core').MongoError;
44
const Cursor = require('./cursor');
55
const CursorState = require('./core/cursor').CursorState;
6-
const deprecate = require('util').deprecate;
76

87
/**
98
* @fileOverview The **AggregationCursor** class is an internal class that embodies an aggregation cursor on MongoDB
@@ -225,12 +224,6 @@ class AggregationCursor extends Cursor {
225224
// aliases
226225
AggregationCursor.prototype.get = AggregationCursor.prototype.toArray;
227226

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-
234227
/**
235228
* AggregationCursor stream data event, fired for each document in the cursor.
236229
*

0 commit comments

Comments
 (0)