Remove ol.xml.makeParsersNS and use ol.xml.makeStructureNS instead

This commit is contained in:
Frederic Junod
2015-08-31 14:06:49 +02:00
parent 4045e06aa9
commit af553366d4
8 changed files with 83 additions and 99 deletions

View File

@@ -1,5 +1,3 @@
// FIXME Remove ol.xml.makeParsersNS, and use ol.xml.makeStructureNS instead.
goog.provide('ol.xml');
goog.require('goog.array');
@@ -497,20 +495,6 @@ ol.xml.makeObjectPropertySetter =
};
/**
* Make a parserNS hash.
* @param {Array.<string>} namespaceURIs Namespace URIs.
* @param {Object.<string, ol.xml.Parser>} parsers Parsers.
* @param {Object.<string, Object.<string, ol.xml.Parser>>=} opt_parsersNS
* ParsersNS.
* @return {Object.<string, Object.<string, ol.xml.Parser>>} Parsers NS.
*/
ol.xml.makeParsersNS = function(namespaceURIs, parsers, opt_parsersNS) {
return /** @type {Object.<string, Object.<string, ol.xml.Parser>>} */ (
ol.xml.makeStructureNS(namespaceURIs, parsers, opt_parsersNS));
};
/**
* Create a serializer that appends nodes written by its `nodeWriter` to its
* designated parent. The parent is the `node` of the