Skip to content

Commit

Permalink
fix: remove geoNear deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Reggi committed Oct 6, 2020
1 parent 967de13 commit 4955a52
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/aggregation_cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const MongoError = require('./core').MongoError;
const Cursor = require('./cursor');
const CursorState = require('./core/cursor').CursorState;
const deprecate = require('util').deprecate;

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

// deprecated methods
deprecate(
AggregationCursor.prototype.geoNear,
'The `$geoNear` stage is deprecated in MongoDB 4.0, and removed in version 4.2.'
);

/**
* AggregationCursor stream data event, fired for each document in the cursor.
*
Expand Down

0 comments on commit 4955a52

Please sign in to comment.