Remove unused ol.format.Feature.getExtensions function

This commit is contained in:
Frederic Junod
2017-01-09 08:36:11 +01:00
parent 1692a19c3b
commit 4bef3f3f19
6 changed files with 0 additions and 86 deletions

View File

@@ -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.
* @param {Document|Node|Object|string} source Source.

View File

@@ -57,14 +57,6 @@ ol.format.GeoJSON = function(opt_options) {
ol.inherits(ol.format.GeoJSON, ol.format.JSONFeature);
/**
* @const
* @type {Array.<string>}
* @private
*/
ol.format.GeoJSON.EXTENSIONS_ = ['.geojson'];
/**
* @param {GeoJSONGeometry|GeoJSONGeometryCollection} object Object.
* @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
* geometry types. Use {@link ol.format.GeoJSON#readFeatures} to read

View File

@@ -41,14 +41,6 @@ ol.format.IGC = function(opt_options) {
ol.inherits(ol.format.IGC, ol.format.TextFeature);
/**
* @const
* @type {Array.<string>}
* @private
*/
ol.format.IGC.EXTENSIONS_ = ['.igc'];
/**
* @const
* @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/;
/**
* @inheritDoc
*/
ol.format.IGC.prototype.getExtensions = function() {
return ol.format.IGC.EXTENSIONS_;
};
/**
* Read the feature from the IGC source.
*

View File

@@ -99,14 +99,6 @@ ol.format.KML = function(opt_options) {
ol.inherits(ol.format.KML, ol.format.XMLFeature);
/**
* @const
* @type {Array.<string>}
* @private
*/
ol.format.KML.EXTENSIONS_ = ['.kml'];
/**
* @const
* @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 {Array.<*>} objectStack Object stack.

View File

@@ -35,22 +35,6 @@ ol.format.OSMXML = function() {
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 {Array.<*>} objectStack Object stack.

View File

@@ -40,13 +40,6 @@ ol.format.TopoJSON = function(opt_options) {
ol.inherits(ol.format.TopoJSON, ol.format.JSONFeature);
/**
* @const {Array.<string>}
* @private
*/
ol.format.TopoJSON.EXTENSIONS_ = ['.topojson'];
/**
* Concatenate arcs into a coordinate array.
* @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.
*