From 1e332f52d68d4138ca62e48856217642cc11fca8 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 27 Jul 2018 13:07:31 +0200 Subject: [PATCH] Remove unimplemented functions The TypeScript checker complain about it. It was a workaround for closure-compiler, it's not needed anymore. --- src/ol/format/IGC.js | 23 ----------------------- src/ol/format/MVT.js | 29 ----------------------------- src/ol/format/OSMXML.js | 17 ----------------- src/ol/format/TopoJSON.js | 29 ----------------------------- src/ol/format/WMSGetFeatureInfo.js | 17 ----------------- 5 files changed, 115 deletions(-) diff --git a/src/ol/format/IGC.js b/src/ol/format/IGC.js index e13d8fe623..589fad8f88 100644 --- a/src/ol/format/IGC.js +++ b/src/ol/format/IGC.js @@ -175,29 +175,6 @@ class IGC extends TextFeature { } } - /** - * Not implemented. - * @inheritDoc - */ - writeFeatureText(feature, opt_options) {} - - /** - * Not implemented. - * @inheritDoc - */ - writeFeaturesText(features, opt_options) {} - - /** - * Not implemented. - * @inheritDoc - */ - writeGeometryText(geometry, opt_options) {} - - /** - * Not implemented. - * @inheritDoc - */ - readGeometryFromText(text, opt_options) {} } export default IGC; diff --git a/src/ol/format/MVT.js b/src/ol/format/MVT.js index 7e8b259a0f..ab9a12ed51 100644 --- a/src/ol/format/MVT.js +++ b/src/ol/format/MVT.js @@ -287,35 +287,6 @@ class MVT extends FeatureFormat { this.layers_ = layers; } - /** - * Not implemented. - * @override - */ - readFeature() {} - - /** - * Not implemented. - * @override - */ - readGeometry() {} - - /** - * Not implemented. - * @override - */ - writeFeature() {} - - /** - * Not implemented. - * @override - */ - writeGeometry() {} - - /** - * Not implemented. - * @override - */ - writeFeatures() {} } diff --git a/src/ol/format/OSMXML.js b/src/ol/format/OSMXML.js index 8d9678afd4..e057b74a1a 100644 --- a/src/ol/format/OSMXML.js +++ b/src/ol/format/OSMXML.js @@ -101,23 +101,6 @@ class OSMXML extends XMLFeature { return []; } - /** - * Not implemented. - * @inheritDoc - */ - writeFeatureNode(feature, opt_options) {} - - /** - * Not implemented. - * @inheritDoc - */ - writeFeaturesNode(features, opt_options) {} - - /** - * Not implemented. - * @inheritDoc - */ - writeGeometryNode(geometry, opt_options) {} } diff --git a/src/ol/format/TopoJSON.js b/src/ol/format/TopoJSON.js index 9cae65ed65..c502b324a3 100644 --- a/src/ol/format/TopoJSON.js +++ b/src/ol/format/TopoJSON.js @@ -123,35 +123,6 @@ class TopoJSON extends JSONFeature { return this.dataProjection; } - /** - * Not implemented. - * @inheritDoc - */ - writeFeatureObject(feature, opt_options) {} - - /** - * Not implemented. - * @inheritDoc - */ - writeFeaturesObject(features, opt_options) {} - - /** - * Not implemented. - * @inheritDoc - */ - writeGeometryObject(geometry, opt_options) {} - - /** - * Not implemented. - * @override - */ - readGeometryFromObject() {} - - /** - * Not implemented. - * @override - */ - readFeatureFromObject() {} } diff --git a/src/ol/format/WMSGetFeatureInfo.js b/src/ol/format/WMSGetFeatureInfo.js index 9c1c8a3f5f..8c542316e0 100644 --- a/src/ol/format/WMSGetFeatureInfo.js +++ b/src/ol/format/WMSGetFeatureInfo.js @@ -150,23 +150,6 @@ class WMSGetFeatureInfo extends XMLFeature { return this.readFeatures_(node, [options]); } - /** - * Not implemented. - * @inheritDoc - */ - writeFeatureNode(feature, opt_options) {} - - /** - * Not implemented. - * @inheritDoc - */ - writeFeaturesNode(features, opt_options) {} - - /** - * Not implemented. - * @inheritDoc - */ - writeGeometryNode(geometry, opt_options) {} }