Skip to content

Commit

Permalink
Cleans up remaining commented code and other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimatedRNG committed Jun 9, 2017
1 parent b572487 commit b25fbc2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Source/Core/Ellipsoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,6 @@ define([
* @returns {Number[]} The array that was packed into
*/
Ellipsoid.pack = function(value, array, startingIndex) {
//>>includeStart('debug', pragmas.debug);
/*if (!defined(value)) {
throw new DeveloperError('value is required');
}
if (!defined(array)) {
throw new DeveloperError('array is required');
}*/

//>>includeStart('debug', pragmas.debug);
Check.typeOf.object('value', value);
Check.defined('array', array);
Expand Down Expand Up @@ -534,7 +526,7 @@ define([
*/
Ellipsoid.prototype.scaleToGeocentricSurface = function(cartesian, result) {
//>>includeStart('debug', pragmas.debug);
Check.defined('cartesian', cartesian);
Check.typeOf.object('cartesian', cartesian);
//>>includeEnd('debug');

if (!defined(result)) {
Expand Down Expand Up @@ -629,7 +621,7 @@ define([
*/
Ellipsoid.prototype.getSurfaceNormalIntersectionWithZAxis = function(position, buffer, result) {
//>>includeStart('debug', pragmas.debug);
Check.defined('position', position);
Check.typeOf.object('position', position);

if (!CesiumMath.equalsEpsilon(this._radii.x, this._radii.y, CesiumMath.EPSILON15)) {
throw new DeveloperError('Ellipsoid must be an ellipsoid of revolution (radii.x == radii.y)');
Expand Down

0 comments on commit b25fbc2

Please sign in to comment.