Skip to content

Commit

Permalink
Merge pull request #9387 from CesiumGS/remove-deprecated-snippets
Browse files Browse the repository at this point in the history
Remove deprecated Cesium3DTileset.url getter, quadratic easing function typos
  • Loading branch information
lilleyse authored Feb 23, 2021
2 parents 6da0cc8 + 5143ed5 commit c5abf0d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 73 deletions.
11 changes: 9 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

### 1.79 - 2021-03-01

##### Breaking Changes :mega:

- Removed `Cesium3DTileset.url`, which was deprecated in CesiumJS 1.78. Use `Cesium3DTileset.resource.url` to retrieve the url value.
- Removed `EasingFunction.QUADRACTIC_IN`, which was deprecated in CesiumJS 1.77. Use `EasingFunction.QUADRATIC_IN`.
- Removed `EasingFunction.QUADRACTIC_OUT`, which was deprecated in CesiumJS 1.77. Use `EasingFunction.QUADRATIC_OUT`.
- Removed `EasingFunction.QUADRACTIC_IN_OUT`, which was deprecated in CesiumJS 1.77. Use `EasingFunction.QUADRATIC_IN_OUT`.

##### Fixes :wrench:

- Fixed an issue that prevented use of the full CesiumJS zip release package in a Node.js application.
Expand Down Expand Up @@ -75,8 +82,8 @@

##### Breaking Changes :mega:

- Removed `MapboxApi`, which was deprecated in v1.72. Pass your access token directly to the `MapboxImageryProvider` or `MapboxStyleImageryProvider` constructors.
- Removed `BingMapsApi`, which was deprecated in v1.72. Pass your access key directly to the `BingMapsImageryProvider` or `BingMapsGeocoderService` constructors.
- Removed `MapboxApi`, which was deprecated in CesiumJS 1.72. Pass your access token directly to the `MapboxImageryProvider` or `MapboxStyleImageryProvider` constructors.
- Removed `BingMapsApi`, which was deprecated in CesiumJS 1.72. Pass your access key directly to the `BingMapsImageryProvider` or `BingMapsGeocoderService` constructors.

##### Additions :tada:

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
- [Erixen Cruz](https://github.com/ErixenCruz)
- [Dzung Nguyen](https://github.com/dzungpng)
- [Nithin Pranesh](https://github.com/nithinp7)
- [Alexander Gallegos](https://github.com/argallegos)
- [Northrop Grumman](http://www.northropgrumman.com)
- [Joseph Stein](https://github.com/nahgrin)
- [EOX IT Services GmbH](https://eox.at)
Expand Down
52 changes: 0 additions & 52 deletions Source/Core/EasingFunction.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Tween from "../ThirdParty/Tween.js";
import deprecationWarning from "./deprecationWarning.js";

/**
* Easing functions for use with TweenCollection. These function are from
Expand Down Expand Up @@ -238,57 +237,6 @@ var EasingFunction = {
BOUNCE_IN_OUT: Tween.Easing.Bounce.InOut,
};

Object.defineProperties(EasingFunction, {
/**
* Quadratic in.
* @memberof EasingFunction
* @type {EasingFunction.Callback}
* @constant
* @deprecated This enum has been deprecated and will be removed in Cesium 1.79. Use {@link EasingFunction.QUADRATIC_IN} instead.
*/
QUADRACTIC_IN: {
get: function () {
deprecationWarning(
"QUADRACTIC_IN",
"QUADRACTIC_IN is deprecated and will be removed in Cesium 1.79. Use QUADRATIC_IN instead."
);
return Tween.Easing.Quadratic.In;
},
},
/**
* Quadratic out.
* @memberof EasingFunction
* @type {EasingFunction.Callback}
* @constant
* @deprecated This enum has been deprecated and will be removed in Cesium 1.79. Use {@link EasingFunction.QUADRATIC_OUT} instead.
*/
QUADRACTIC_OUT: {
get: function () {
deprecationWarning(
"QUADRACTIC_OUT",
"QUADRACTIC_OUT is deprecated and will be removed in Cesium 1.79. Use QUADRATIC_OUT instead."
);
return Tween.Easing.Quadratic.Out;
},
},
/**
* Quadratic in then out.
* @memberof EasingFunction
* @type {EasingFunction.Callback}
* @constant
* @deprecated This enum has been deprecated and will be removed in Cesium 1.79. Use {@link EasingFunction.QUADRATIC_IN_OUT} instead.
*/
QUADRACTIC_IN_OUT: {
get: function () {
deprecationWarning(
"QUADRACTIC_IN_OUT",
"QUADRACTIC_IN_OUT is deprecated and will be removed in Cesium 1.79. Use QUADRATIC_IN_OUT instead."
);
return Tween.Easing.Quadratic.InOut;
},
},
});

/**
* Function interface for implementing a custom easing function.
* @callback EasingFunction.Callback
Expand Down
19 changes: 0 additions & 19 deletions Source/Scene/Cesium3DTileset.js
Original file line number Diff line number Diff line change
Expand Up @@ -1165,25 +1165,6 @@ Object.defineProperties(Cesium3DTileset.prototype, {
},
},

/**
* The url to a tileset JSON file.
*
* @memberof Cesium3DTileset.prototype
*
* @type {String}
* @readonly
* @deprecated
*/
url: {
get: function () {
deprecationWarning(
"Cesium3DTileset.url",
"Cesium3DTileset.url has been deprecated and will be removed in CesiumJS 1.79. Instead, use Cesium3DTileset.resource.url to retrieve the url value."
);
return this._url;
},
},

/**
* The resource used to fetch the tileset JSON file
*
Expand Down

0 comments on commit c5abf0d

Please sign in to comment.