From b25fbc2e4aecd38f924fc161d65cfd5d86cfda51 Mon Sep 17 00:00:00 2001 From: Srinivas Kaza Date: Fri, 9 Jun 2017 10:06:05 -0400 Subject: [PATCH] Cleans up remaining commented code and other fixes --- Source/Core/Ellipsoid.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Source/Core/Ellipsoid.js b/Source/Core/Ellipsoid.js index 36001049ba69..d31c69aefaf9 100644 --- a/Source/Core/Ellipsoid.js +++ b/Source/Core/Ellipsoid.js @@ -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); @@ -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)) { @@ -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)');