Remove unnecessary cast
Found by the latest version of closure-compiler (v20150729)
This commit is contained in:
@@ -24,8 +24,7 @@ goog.require('ol.proj');
|
|||||||
ol.geom.Circle = function(center, opt_radius, opt_layout) {
|
ol.geom.Circle = function(center, opt_radius, opt_layout) {
|
||||||
goog.base(this);
|
goog.base(this);
|
||||||
var radius = goog.isDef(opt_radius) ? opt_radius : 0;
|
var radius = goog.isDef(opt_radius) ? opt_radius : 0;
|
||||||
this.setCenterAndRadius(center, radius,
|
this.setCenterAndRadius(center, radius, opt_layout);
|
||||||
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.geom.Circle, ol.geom.SimpleGeometry);
|
goog.inherits(ol.geom.Circle, ol.geom.SimpleGeometry);
|
||||||
|
|
||||||
|
|||||||
@@ -39,8 +39,7 @@ ol.geom.LinearRing = function(coordinates, opt_layout) {
|
|||||||
*/
|
*/
|
||||||
this.maxDeltaRevision_ = -1;
|
this.maxDeltaRevision_ = -1;
|
||||||
|
|
||||||
this.setCoordinates(coordinates,
|
this.setCoordinates(coordinates, opt_layout);
|
||||||
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
|
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.geom.LinearRing, ol.geom.SimpleGeometry);
|
goog.inherits(ol.geom.LinearRing, ol.geom.SimpleGeometry);
|
||||||
|
|||||||
@@ -55,8 +55,7 @@ ol.geom.LineString = function(coordinates, opt_layout) {
|
|||||||
*/
|
*/
|
||||||
this.maxDeltaRevision_ = -1;
|
this.maxDeltaRevision_ = -1;
|
||||||
|
|
||||||
this.setCoordinates(coordinates,
|
this.setCoordinates(coordinates, opt_layout);
|
||||||
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
|
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.geom.LineString, ol.geom.SimpleGeometry);
|
goog.inherits(ol.geom.LineString, ol.geom.SimpleGeometry);
|
||||||
|
|||||||
@@ -48,8 +48,7 @@ ol.geom.MultiLineString = function(coordinates, opt_layout) {
|
|||||||
*/
|
*/
|
||||||
this.maxDeltaRevision_ = -1;
|
this.maxDeltaRevision_ = -1;
|
||||||
|
|
||||||
this.setCoordinates(coordinates,
|
this.setCoordinates(coordinates, opt_layout);
|
||||||
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
|
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.geom.MultiLineString, ol.geom.SimpleGeometry);
|
goog.inherits(ol.geom.MultiLineString, ol.geom.SimpleGeometry);
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ goog.require('ol.math');
|
|||||||
*/
|
*/
|
||||||
ol.geom.MultiPoint = function(coordinates, opt_layout) {
|
ol.geom.MultiPoint = function(coordinates, opt_layout) {
|
||||||
goog.base(this);
|
goog.base(this);
|
||||||
this.setCoordinates(coordinates,
|
this.setCoordinates(coordinates, opt_layout);
|
||||||
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.geom.MultiPoint, ol.geom.SimpleGeometry);
|
goog.inherits(ol.geom.MultiPoint, ol.geom.SimpleGeometry);
|
||||||
|
|
||||||
|
|||||||
@@ -78,8 +78,7 @@ ol.geom.MultiPolygon = function(coordinates, opt_layout) {
|
|||||||
*/
|
*/
|
||||||
this.orientedFlatCoordinates_ = null;
|
this.orientedFlatCoordinates_ = null;
|
||||||
|
|
||||||
this.setCoordinates(coordinates,
|
this.setCoordinates(coordinates, opt_layout);
|
||||||
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
|
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.geom.MultiPolygon, ol.geom.SimpleGeometry);
|
goog.inherits(ol.geom.MultiPolygon, ol.geom.SimpleGeometry);
|
||||||
|
|||||||
@@ -21,8 +21,7 @@ goog.require('ol.math');
|
|||||||
*/
|
*/
|
||||||
ol.geom.Point = function(coordinates, opt_layout) {
|
ol.geom.Point = function(coordinates, opt_layout) {
|
||||||
goog.base(this);
|
goog.base(this);
|
||||||
this.setCoordinates(coordinates,
|
this.setCoordinates(coordinates, opt_layout);
|
||||||
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.geom.Point, ol.geom.SimpleGeometry);
|
goog.inherits(ol.geom.Point, ol.geom.SimpleGeometry);
|
||||||
|
|
||||||
|
|||||||
@@ -77,8 +77,7 @@ ol.geom.Polygon = function(coordinates, opt_layout) {
|
|||||||
*/
|
*/
|
||||||
this.orientedFlatCoordinates_ = null;
|
this.orientedFlatCoordinates_ = null;
|
||||||
|
|
||||||
this.setCoordinates(coordinates,
|
this.setCoordinates(coordinates, opt_layout);
|
||||||
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
|
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.geom.Polygon, ol.geom.SimpleGeometry);
|
goog.inherits(ol.geom.Polygon, ol.geom.SimpleGeometry);
|
||||||
|
|||||||
Reference in New Issue
Block a user