Skip to content

Commit

Permalink
remove Rectangle.validate
Browse files Browse the repository at this point in the history
  • Loading branch information
jjspace committed Nov 25, 2024
1 parent 26b5d3d commit 09cdcb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
- `TrackingReferenceFrame.VELOCITY`: uses entity's `VelocityOrientationProperty` as orientation.
- Added `GoogleGeocoderService` for standalone usage of Google geocoder. [#12299](https://github.com/CesiumGS/cesium/pull/12299)

##### Breaking Changes :mega:

- `Rectangle.validate` has been removed.

##### Fixes :wrench:

- Fix label rendering bug in WebGL1 contexts. [#12301](https://github.com/CesiumGS/cesium/pull/12301)
Expand Down
20 changes: 0 additions & 20 deletions packages/engine/Source/Core/Rectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Ellipsoid from "./Ellipsoid.js";
import CesiumMath from "./Math.js";
import Transforms from "./Transforms.js";
import Matrix4 from "./Matrix4.js";
import deprecationWarning from "./deprecationWarning.js";

/**
* A two dimensional region specified as longitude and latitude coordinates.
Expand Down Expand Up @@ -533,25 +532,6 @@ Rectangle.prototype.equalsEpsilon = function (other, epsilon) {
return Rectangle.equalsEpsilon(this, other, epsilon);
};

/**
* Checks a Rectangle's properties and throws if they are not in valid ranges.
*
* @param {Rectangle} rectangle The rectangle to validate
*
* @exception {DeveloperError} <code>north</code> must be in the interval [<code>-Pi/2</code>, <code>Pi/2</code>].
* @exception {DeveloperError} <code>south</code> must be in the interval [<code>-Pi/2</code>, <code>Pi/2</code>].
* @exception {DeveloperError} <code>east</code> must be in the interval [<code>-Pi</code>, <code>Pi</code>].
* @exception {DeveloperError} <code>west</code> must be in the interval [<code>-Pi</code>, <code>Pi</code>].
* @deprecated This function is deprecated and will be removed in Cesium 1.124. See <a href="https://github.com/CesiumGS/cesium/issues/4921">Issue 4921</a>
*/
Rectangle.validate = function (rectangle) {
deprecationWarning(
"Rectangle.validate",
"Rectangle.validate is a no-op and has been deprecated. It will be removed in Cesium 1.124.",
);
return Rectangle._validate(rectangle);
};

/**
* Checks a Rectangle's properties and throws if they are not in valid ranges.
*
Expand Down

0 comments on commit 09cdcb3

Please sign in to comment.