editor: removing old unused code
[fnpeditor.git] / src / editor / modules / metadataEditor / transformations.js
diff --git a/src/editor/modules/metadataEditor/transformations.js b/src/editor/modules/metadataEditor/transformations.js
deleted file mode 100644 (file)
index 4bb3fdc..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-define(['libs/jquery', 'libs/underscore'], function($, _) {
-
-    'use strict';
-
-    return {
-        getMetadata: function(xml) {
-            var toret = {};
-            $(xml).find('metadata').children().each(function() {
-                var node = $(this);
-                toret[this.nodeName.split(':')[1].toLowerCase()] = node.text();
-            });
-            return toret;
-        },
-        getXML: function(metadata) {
-            var meta = $('<metadata></metadata>\n');
-            _.each(_.keys(metadata), function(key) {
-                meta.append('\n\t<dc:'+key+'>' + metadata[key] + '</dc:'+key+'>');
-            });
-            meta.append('\n');
-            /* globals vkbeautify */
-            return vkbeautify.xml(meta.html());
-        }
-    };
-
-});
\ No newline at end of file