From 4955a52e4f8544d174103afccfaa5b588194cc58 Mon Sep 17 00:00:00 2001 From: Thomas Reggi Date: Tue, 6 Oct 2020 13:54:47 -0400 Subject: [PATCH] fix: remove geoNear deprecation NODE-2834 --- lib/aggregation_cursor.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/aggregation_cursor.js b/lib/aggregation_cursor.js index b0977c69866..aa9d207e7cf 100644 --- a/lib/aggregation_cursor.js +++ b/lib/aggregation_cursor.js @@ -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 @@ -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. *