Skip to content

Commit 937ecf4

Browse files
committed
removed duplicate of withinGeoBox that was mistakenly added earlier
1 parent 0cd0bd1 commit 937ecf4

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/ParseQuery.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,28 +1170,6 @@ class ParseQuery {
11701170
return this;
11711171
}
11721172

1173-
/**
1174-
* Adds a constraint to the query that requires a particular key's
1175-
* coordinates be contained within a given rectangular geographic bounding
1176-
* box.
1177-
* @param {String} key The key to be constrained.
1178-
* @param {Parse.GeoPoint} southwest
1179-
* The lower-left inclusive corner of the box.
1180-
* @param {Parse.GeoPoint} northeast
1181-
* The upper-right inclusive corner of the box.
1182-
* @return {Parse.Query} Returns the query, so you can chain this call.
1183-
*/
1184-
withinGeoBox(key: string, southwest: ParseGeoPoint, northeast: ParseGeoPoint): ParseQuery {
1185-
if (!(southwest instanceof ParseGeoPoint)) {
1186-
southwest = new ParseGeoPoint(southwest);
1187-
}
1188-
if (!(northeast instanceof ParseGeoPoint)) {
1189-
northeast = new ParseGeoPoint(northeast);
1190-
}
1191-
this._addCondition(key, '$within', { '$box': [ southwest, northeast ] });
1192-
return this;
1193-
}
1194-
11951173
/**
11961174
* Adds a constraint to the query that requires a particular key's
11971175
* coordinates be contained within and on the bounds of a given polygon.

0 commit comments

Comments
 (0)