From: Aleksander Ɓukasz Date: Wed, 4 Dec 2013 11:56:29 +0000 (+0100) Subject: remove unused code X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/5a56f0121e2e8001a5f9910f018d273913e64635?ds=inline remove unused code This was used by the first version of lists extension --- diff --git a/src/wlxml/wlxml.js b/src/wlxml/wlxml.js index 98d6a10..d67fe31 100644 --- a/src/wlxml/wlxml.js +++ b/src/wlxml/wlxml.js @@ -371,7 +371,6 @@ var wlxmlClasses = { } }; -var classMethods = {}; return { WLXMLDocumentFromXML: function(xml, options) { @@ -381,32 +380,7 @@ return { WLXMLElementNodeFromXML: function(xml) { return this.WLXMLDocumentFromXML(xml).root; - }, - - registerExtension: function(extension) { - // @@ depracated - if(extension.documentTransformations) { - extension.documentTransformations.forEach(function(method) { - WLXMLDocument.prototype.transformations.register(transformations.createContextTransformation(method)); - }); - } - - _.pairs(extension.classMethods).forEach(function(pair) { - var className = pair[0], - methods = pair[1]; - _.pairs(methods).forEach(function(pair) { - var methodName = pair[0], - method = pair[1]; - classMethods[className] = classMethods[className] || {}; - classMethods[className][methodName] = method; - }); - - }); - - _.extend(WLXMLDocument.prototype, extension.documentMethods); - } - }; }); \ No newline at end of file