Remove unused ol.format.Feature.getExtensions function
This commit is contained in:
@@ -34,13 +34,6 @@ ol.format.Feature = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @abstract
|
|
||||||
* @return {Array.<string>} Extensions.
|
|
||||||
*/
|
|
||||||
ol.format.Feature.prototype.getExtensions = function() {};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the data projection to the read options.
|
* Adds the data projection to the read options.
|
||||||
* @param {Document|Node|Object|string} source Source.
|
* @param {Document|Node|Object|string} source Source.
|
||||||
|
|||||||
@@ -57,14 +57,6 @@ ol.format.GeoJSON = function(opt_options) {
|
|||||||
ol.inherits(ol.format.GeoJSON, ol.format.JSONFeature);
|
ol.inherits(ol.format.GeoJSON, ol.format.JSONFeature);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {Array.<string>}
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
ol.format.GeoJSON.EXTENSIONS_ = ['.geojson'];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {GeoJSONGeometry|GeoJSONGeometryCollection} object Object.
|
* @param {GeoJSONGeometry|GeoJSONGeometryCollection} object Object.
|
||||||
* @param {olx.format.ReadOptions=} opt_options Read options.
|
* @param {olx.format.ReadOptions=} opt_options Read options.
|
||||||
@@ -334,14 +326,6 @@ ol.format.GeoJSON.GEOMETRY_WRITERS_ = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritDoc
|
|
||||||
*/
|
|
||||||
ol.format.GeoJSON.prototype.getExtensions = function() {
|
|
||||||
return ol.format.GeoJSON.EXTENSIONS_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read a feature from a GeoJSON Feature source. Only works for Feature or
|
* Read a feature from a GeoJSON Feature source. Only works for Feature or
|
||||||
* geometry types. Use {@link ol.format.GeoJSON#readFeatures} to read
|
* geometry types. Use {@link ol.format.GeoJSON#readFeatures} to read
|
||||||
|
|||||||
@@ -41,14 +41,6 @@ ol.format.IGC = function(opt_options) {
|
|||||||
ol.inherits(ol.format.IGC, ol.format.TextFeature);
|
ol.inherits(ol.format.IGC, ol.format.TextFeature);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {Array.<string>}
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
ol.format.IGC.EXTENSIONS_ = ['.igc'];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @const
|
* @const
|
||||||
* @type {RegExp}
|
* @type {RegExp}
|
||||||
@@ -84,14 +76,6 @@ ol.format.IGC.HFDTE_RECORD_RE_ = /^HFDTE(\d{2})(\d{2})(\d{2})/;
|
|||||||
ol.format.IGC.NEWLINE_RE_ = /\r\n|\r|\n/;
|
ol.format.IGC.NEWLINE_RE_ = /\r\n|\r|\n/;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritDoc
|
|
||||||
*/
|
|
||||||
ol.format.IGC.prototype.getExtensions = function() {
|
|
||||||
return ol.format.IGC.EXTENSIONS_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read the feature from the IGC source.
|
* Read the feature from the IGC source.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -99,14 +99,6 @@ ol.format.KML = function(opt_options) {
|
|||||||
ol.inherits(ol.format.KML, ol.format.XMLFeature);
|
ol.inherits(ol.format.KML, ol.format.XMLFeature);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {Array.<string>}
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
ol.format.KML.EXTENSIONS_ = ['.kml'];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @const
|
* @const
|
||||||
* @type {Array.<string>}
|
* @type {Array.<string>}
|
||||||
@@ -1646,14 +1638,6 @@ ol.format.KML.STYLE_MAP_PARSERS_ = ol.xml.makeStructureNS(
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritDoc
|
|
||||||
*/
|
|
||||||
ol.format.KML.prototype.getExtensions = function() {
|
|
||||||
return ol.format.KML.EXTENSIONS_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Node} node Node.
|
* @param {Node} node Node.
|
||||||
* @param {Array.<*>} objectStack Object stack.
|
* @param {Array.<*>} objectStack Object stack.
|
||||||
|
|||||||
@@ -35,22 +35,6 @@ ol.format.OSMXML = function() {
|
|||||||
ol.inherits(ol.format.OSMXML, ol.format.XMLFeature);
|
ol.inherits(ol.format.OSMXML, ol.format.XMLFeature);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {Array.<string>}
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
ol.format.OSMXML.EXTENSIONS_ = ['.osm'];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritDoc
|
|
||||||
*/
|
|
||||||
ol.format.OSMXML.prototype.getExtensions = function() {
|
|
||||||
return ol.format.OSMXML.EXTENSIONS_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Node} node Node.
|
* @param {Node} node Node.
|
||||||
* @param {Array.<*>} objectStack Object stack.
|
* @param {Array.<*>} objectStack Object stack.
|
||||||
|
|||||||
@@ -40,13 +40,6 @@ ol.format.TopoJSON = function(opt_options) {
|
|||||||
ol.inherits(ol.format.TopoJSON, ol.format.JSONFeature);
|
ol.inherits(ol.format.TopoJSON, ol.format.JSONFeature);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const {Array.<string>}
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
ol.format.TopoJSON.EXTENSIONS_ = ['.topojson'];
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Concatenate arcs into a coordinate array.
|
* Concatenate arcs into a coordinate array.
|
||||||
* @param {Array.<number>} indices Indices of arcs to concatenate. Negative
|
* @param {Array.<number>} indices Indices of arcs to concatenate. Negative
|
||||||
@@ -201,14 +194,6 @@ ol.format.TopoJSON.readMultiPolygonGeometry_ = function(object, arcs) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @inheritDoc
|
|
||||||
*/
|
|
||||||
ol.format.TopoJSON.prototype.getExtensions = function() {
|
|
||||||
return ol.format.TopoJSON.EXTENSIONS_;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create features from a TopoJSON GeometryCollection object.
|
* Create features from a TopoJSON GeometryCollection object.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user