diff --git a/src/ol/format/OWS.js b/src/ol/format/OWS.js index 21a43206d5..5883512be7 100644 --- a/src/ol/format/OWS.js +++ b/src/ol/format/OWS.js @@ -33,19 +33,6 @@ class OWS extends XML { super(); } - /** - * @param {Document} doc Document. - * @return {Object} Object - */ - readFromDocument(doc) { - for (let n = doc.firstChild; n; n = n.nextSibling) { - if (n.nodeType == Node.ELEMENT_NODE) { - return this.readFromNode(/** @type {Element} */ (n)); - } - } - return null; - } - /** * @param {Element} node Node. * @return {Object} Object diff --git a/src/ol/format/WMSCapabilities.js b/src/ol/format/WMSCapabilities.js index af2b4a7053..0ceced4465 100644 --- a/src/ol/format/WMSCapabilities.js +++ b/src/ol/format/WMSCapabilities.js @@ -62,19 +62,6 @@ class WMSCapabilities extends XML { this.version = undefined; } - /** - * @param {Document} doc Document. - * @return {Object} Object - */ - readFromDocument(doc) { - for (let n = doc.firstChild; n; n = n.nextSibling) { - if (n.nodeType == Node.ELEMENT_NODE) { - return this.readFromNode(/** @type {Element} */ (n)); - } - } - return null; - } - /** * @param {Element} node Node. * @return {Object} Object diff --git a/src/ol/format/WMTSCapabilities.js b/src/ol/format/WMTSCapabilities.js index 80518cb28f..9e72eb213e 100644 --- a/src/ol/format/WMTSCapabilities.js +++ b/src/ol/format/WMTSCapabilities.js @@ -52,19 +52,6 @@ class WMTSCapabilities extends XML { this.owsParser_ = new OWS(); } - /** - * @param {Document} doc Document. - * @return {Object} Object - */ - readFromDocument(doc) { - for (let n = doc.firstChild; n; n = n.nextSibling) { - if (n.nodeType == Node.ELEMENT_NODE) { - return this.readFromNode(/** @type {Element} */ (n)); - } - } - return null; - } - /** * @param {Element} node Node. * @return {Object} Object diff --git a/src/ol/format/XML.js b/src/ol/format/XML.js index 7ad822275c..10c688074c 100644 --- a/src/ol/format/XML.js +++ b/src/ol/format/XML.js @@ -31,11 +31,17 @@ class XML { } /** - * @abstract * @param {Document} doc Document. * @return {Object} Object */ - readFromDocument(doc) {} + readFromDocument(doc) { + for (let n = doc.firstChild; n; n = n.nextSibling) { + if (n.nodeType == Node.ELEMENT_NODE) { + return this.readFromNode(/** @type {Element} */ (n)); + } + } + return null; + } /** * @abstract