Skip to content

Commit

Permalink
Merge pull request #6306 from AnalyticalGraphicsInc/remove-blank-lines
Browse files Browse the repository at this point in the history
Enable eslint `no-multiple-empty-lines`
  • Loading branch information
Hannah authored Mar 5, 2018
2 parents b1f61de + 2a67108 commit 98f90c7
Show file tree
Hide file tree
Showing 65 changed files with 5 additions and 73 deletions.
1 change: 0 additions & 1 deletion Apps/Sandcastle/gallery/CZML Point.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
}
}];


var viewer = new Cesium.Viewer('cesiumContainer');
var dataSourcePromise = Cesium.CzmlDataSource.load(czml);
viewer.dataSources.add(dataSourcePromise);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@

viewer.dataSources.add(Cesium.CzmlDataSource.load(czml));


//Sandcastle_End
Sandcastle.finishedLoading();
}
Expand Down
1 change: 0 additions & 1 deletion Apps/Sandcastle/gallery/Geometry and Appearances.html
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@
}
});


for (i = 0; i < 5; ++i) {
height = 200000.0 * i;

Expand Down
2 changes: 0 additions & 2 deletions Apps/Sandcastle/gallery/Imagery Layers Split.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

<script id="cesium_sandcastle_script">


function startup(Cesium) {
'use strict';
//Sandcastle_Begin
Expand Down Expand Up @@ -97,7 +96,6 @@
moveActive = false;
}, Cesium.ScreenSpaceEventType.PINCH_END);


//Sandcastle_End
Sandcastle.finishedLoading();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

<script id="cesium_sandcastle_script">


function startup(Cesium) {
'use strict';
//Sandcastle_Begin
Expand Down
1 change: 0 additions & 1 deletion Apps/Sandcastle/gallery/Polyline Dash.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
}
});


viewer.zoomTo(viewer.entities);
//Sandcastle_End
Sandcastle.finishedLoading();
Expand Down
1 change: 0 additions & 1 deletion Apps/Sandcastle/gallery/development/Frustum.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
var viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;


var positionOnEllipsoid = Cesium.Cartesian3.fromDegrees(-105.0, 45.0, 20.0);

var enu = Cesium.Transforms.eastNorthUpToFixedFrame(positionOnEllipsoid);
Expand Down
1 change: 0 additions & 1 deletion Apps/Sandcastle/gallery/development/Polyline.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
appearance : new Cesium.PolylineColorAppearance()
}));


// Example 2: Draw a straight blue polyline

// Setting the followSurface option to false will allow
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Cartesian2.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ define([
Check.typeOf.object('result', result);
//>>includeEnd('debug');


result.x = Math.min(first.x, second.x);
result.y = Math.min(first.y, second.y);

Expand Down
1 change: 0 additions & 1 deletion Source/Core/Cartesian4.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ define([
return result;
};


/**
* The number of elements used to pack the object into an array.
* @type {Number}
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ define([
}
},


/**
* Indicates whether {@link Clock#tick} should attempt to advance time.
* The clock will only advance time when both
Expand Down
1 change: 0 additions & 1 deletion Source/Core/CylinderGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ define([
var tangentScratch = new Cartesian3();
var positionScratch = new Cartesian3();


/**
* A description of a cylinder.
*
Expand Down
1 change: 0 additions & 1 deletion Source/Core/FeatureDetection.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ define([
return isWindowsResult;
}


function firefoxVersion() {
return isFirefox() && firefoxVersionResult;
}
Expand Down
1 change: 0 additions & 1 deletion Source/Core/HeightmapTerrainData.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ define([
}
});


var taskProcessor = new TaskProcessor('createVerticesFromHeightmap');

/**
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Math.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,6 @@ define([
return randomNumberGenerator.random();
};


/**
* Generates a random number between two numbers.
*
Expand Down
1 change: 0 additions & 1 deletion Source/Core/NearFarScalar.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ define([
return result;
};


/**
* The number of elements used to pack the object into an array.
* @type {Number}
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Occluder.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ define([
return result;
};


var tempVecScratch = new Cartesian3();

/**
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Request.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ define([
this.cancelled = true;
};


/**
* Duplicates a Request instance.
*
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ define([
this.retryAttempts = defaultValue(options.retryAttempts, 0);
this._retryCount = 0;


var uri = new Uri(options.url);
parseQuery(uri, this, true, true);

Expand Down
1 change: 0 additions & 1 deletion Source/Core/TilingScheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ define([
get : DeveloperError.throwInstantiationError
},


/**
* Gets the map projection used by the tiling scheme.
* @memberof TilingScheme.prototype
Expand Down
1 change: 0 additions & 1 deletion Source/Core/barycentricCoordinates.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ define([
Check.defined('p2', p2);
//>>includeEnd('debug');


if (!defined(result)) {
result = new Cartesian3();
}
Expand Down
1 change: 0 additions & 1 deletion Source/Core/getStringFromTypedArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ define([
return decoder.decode(view);
};


getStringFromTypedArray.decodeWithFromCharCode = function(view) {
var result = '';
var codePoints = utf8Handler(view);
Expand Down
2 changes: 0 additions & 2 deletions Source/DataSources/EntityCluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,6 @@ define([
*/
EntityCluster.prototype.getLabel = createGetEntity('_labelCollection', LabelCollection, '_unusedLabelIndices', 'labelIndex');


/**
* Removes the {@link Label} associated with an entity so it can be reused by another entity.
* @param {Entity} entity The entity that will uses the returned {@link Label} for visualization.
Expand Down Expand Up @@ -618,7 +617,6 @@ define([
*/
EntityCluster.prototype.getBillboard = createGetEntity('_billboardCollection', BillboardCollection, '_unusedBillboardIndices', 'billboardIndex');


/**
* Removes the {@link Billboard} associated with an entity so it can be reused by another entity.
* @param {Entity} entity The entity that will uses the returned {@link Billboard} for visualization.
Expand Down
1 change: 0 additions & 1 deletion Source/DataSources/WallGeometryUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ define([
options.granularity = defined(granularity) ? granularity.getValue(Iso8601.MINIMUM_VALUE) : undefined;
};


WallGeometryUpdater.DynamicGeometryUpdater = DynamicWallGeometryUpdater;

/**
Expand Down
1 change: 0 additions & 1 deletion Source/Scene/ArcGisMapServerImageryProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,6 @@ define([
}
});


/**
* Gets the credits to be displayed when a given tile is displayed.
*
Expand Down
2 changes: 0 additions & 2 deletions Source/Scene/BingMapsImageryProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ define([
}
},


/**
* Gets the Bing Maps key.
* @memberof BingMapsImageryProvider.prototype
Expand Down Expand Up @@ -338,7 +337,6 @@ define([
}
},


/**
* Gets the maximum level-of-detail that can be requested. This function should
* not be called before {@link BingMapsImageryProvider#ready} returns true.
Expand Down
1 change: 0 additions & 1 deletion Source/Scene/ClassificationPrimitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ define([
};
}


function getColorRenderState(enableStencil) {
return {
stencilTest : {
Expand Down
1 change: 0 additions & 1 deletion Source/Scene/CreditDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ define([
}
lightbox.addEventListener('click', hideLightbox, false);


var title = document.createElement('div');
title.className = 'cesium-credit-lightbox-title';
title.textContent = 'Data provided by:';
Expand Down
1 change: 0 additions & 1 deletion Source/Scene/ImageryLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ define([
}
});


/**
* This value is used as the default brightness for the imagery layer if one is not provided during construction
* or by the imagery provider. This value does not modify the brightness of the imagery.
Expand Down
1 change: 0 additions & 1 deletion Source/Scene/Primitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,6 @@ define([
' return u_modifiedModelView * position;\n' +
'}\n\n';


vertexShaderSource = vertexShaderSource.replace(/czm_modelViewRelativeToEye\s+\*\s+/g, '');
vertexShaderSource = vertexShaderSource.replace(/czm_modelViewProjectionRelativeToEye/g, 'czm_projection');
}
Expand Down
3 changes: 0 additions & 3 deletions Source/Widgets/CesiumInspector/CesiumInspectorViewModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,6 @@ define([
}
},


/**
* Gets the command to toggle the visibility of a BoundingSphere for a primitive
* @memberof CesiumInspectorViewModel.prototype
Expand Down Expand Up @@ -663,7 +662,6 @@ define([
}
},


/**
* Gets the command to increment the depth frustum index to be shown
* @memberof CesiumInspectorViewModel.prototype
Expand All @@ -688,7 +686,6 @@ define([
}
},


/**
* Gets the command to toggle the visibility of tile coordinates
* @memberof CesiumInspectorViewModel.prototype
Expand Down
1 change: 0 additions & 1 deletion Source/Widgets/FullscreenButton/FullscreenButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ define([
}
//>>includeEnd('debug');


container = getElement(container);

var viewModel = new FullscreenButtonViewModel(fullscreenElement);
Expand Down
1 change: 0 additions & 1 deletion Source/Widgets/Timeline/Timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ define([

var timelineMonthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];


/**
* The Timeline is a widget for displaying and controlling the current scene time.
* @alias Timeline
Expand Down
1 change: 0 additions & 1 deletion Specs/Core/GeometryPipelineSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,6 @@ defineSuite([
}).toThrowDeveloperError();
});


it('computeNormal computes normal for one triangle', function() {
var geometry = new Geometry({
attributes: {
Expand Down
1 change: 0 additions & 1 deletion Specs/Core/IntersectionTestsSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ defineSuite([
}).toThrowDeveloperError();
});


it('lineSegmentTriangle throws without v1', function() {
expect(function() {
IntersectionTests.lineSegmentTriangle(new Cartesian3());
Expand Down
2 changes: 0 additions & 2 deletions Specs/Core/Matrix3Spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ defineSuite([
expect(matrix[Matrix3.COLUMN2ROW2]).toEqual(9.0);
});


it('can pack and unpack', function() {
var array = [];
var matrix = new Matrix3(
Expand Down Expand Up @@ -161,7 +160,6 @@ defineSuite([
expect(returnedResult).toEqualEpsilon(expected, CesiumMath.EPSILON15);
});


it('fromScale works without a result parameter', function() {
var expected = new Matrix3(
7.0, 0.0, 0.0,
Expand Down
2 changes: 0 additions & 2 deletions Specs/Core/Matrix4Spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,6 @@ defineSuite([
expect(Matrix4.equalsEpsilon(left, right, 3.9)).toEqual(false);
expect(Matrix4.equalsEpsilon(left, right, 4.0)).toEqual(true);


left = new Matrix4(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0);
right = new Matrix4(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 20.0);
expect(Matrix4.equalsEpsilon(left, right, 3.9)).toEqual(false);
Expand Down Expand Up @@ -1656,7 +1655,6 @@ defineSuite([
}).toThrowDeveloperError();
});


it('multiplyByPointAsVector throws without result parameter', function() {
expect(function() {
Matrix4.multiplyByPointAsVector(new Matrix4(), new Cartesian3());
Expand Down
1 change: 0 additions & 1 deletion Specs/Core/PolygonGeometrySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,6 @@ defineSuite([
}
});


it('creates a polygon from hierarchy extruded', function() {
var hierarchy = {
positions : Cartesian3.fromDegreesArray([
Expand Down
1 change: 0 additions & 1 deletion Specs/Core/QuantizedMeshTerrainDataSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,6 @@ defineSuite([
childTileMask : 15
});


// position in the northwest quadrant of the tile.
var longitude = rectangle.west + (rectangle.east - rectangle.west) * 0.25;
var latitude = rectangle.south + (rectangle.north - rectangle.south) * 0.75;
Expand Down
1 change: 0 additions & 1 deletion Specs/Core/RectangleOutlineGeometrySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ defineSuite([
expect(actual).toEqualEpsilon(rotatedNWCorner, CesiumMath.EPSILON6);
});


it('computes non-extruded rectangle if height is small', function() {
var rectangle = new Rectangle(-2.0, -1.0, 0.0, 1.0);
var m = RectangleOutlineGeometry.createGeometry(new RectangleOutlineGeometry({
Expand Down
1 change: 0 additions & 1 deletion Specs/Core/RectangleSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ defineSuite([
expect(rectangle.north).toEqualEpsilon(maxLat.latitude, CesiumMath.EPSILON15);
});


it('clone works without a result parameter.', function() {
var rectangle = new Rectangle(west, south, east, north);
var returnedResult = rectangle.clone();
Expand Down
1 change: 0 additions & 1 deletion Specs/Core/ResourceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ defineSuite([
});
});


it('setTemplateValues with useAsDefault set to true', function() {
var resource = new Resource({
url: 'http://test.com/terrain/{z}/{x}/{y}.terrain',
Expand Down
1 change: 0 additions & 1 deletion Specs/Core/SimplePolylineGeometrySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ defineSuite([
expect(line.attributes.color.values.length).toEqual(numVertices * 4);
});


it('constructor computes all vertex attributes, no subdivision', function() {
var positions = [new Cartesian3(), new Cartesian3(1.0, 0.0, 0.0), new Cartesian3(2.0, 0.0, 0.0)];
var line = SimplePolylineGeometry.createGeometry(new SimplePolylineGeometry({
Expand Down
Loading

0 comments on commit 98f90c7

Please sign in to comment.