split engine/ into manifold/ (backend oriented) and unfold/ (the UI)
[unfold.git] / engine / js / plugin.js
diff --git a/engine/js/plugin.js b/engine/js/plugin.js
deleted file mode 100644 (file)
index 76683d1..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-function getMetadata(){
-    return MANIFOLD_METADATA;
-}
-// returns all fields of a given method
-function getMetadata_fields(method){
-    var result=new Array();
-    jQuery.each(MANIFOLD_METADATA, function(m,obj){
-        if(m==method){
-            jQuery.each(obj['column'], function(i,f){
-                result.push(f);
-            });
-            return false;
-        }
-    });
-    result.sort(sort_by('column', false, function(a){return a.toUpperCase()}));
-    //result=jQuery(result).sort("column", "asc");
-    return result;
-}
-// returns all properties of a given field
-function getMetadata_field(method, field){
-    var result=new Array();
-    jQuery.each(MANIFOLD_METADATA, function(m,obj){
-        if(m==method){
-            jQuery.each(obj['column'], function(i,f){
-                if(f['column']==field){
-                    result.push(f);
-                    return false;
-                }
-            });
-            return false;
-        }
-    });
-    return result[0];
-}
-// returns the value of a property from a field within a method (type of object : resource,node,lease,slice...)
-function getMetadata_property(method, field, property){
-    var result=null;
-    jQuery.each(MANIFOLD_METADATA, function(m,obj){
-        if(m==method){
-            jQuery.each(obj['column'], function(i,f){
-                if(f['column']==field){
-                    result=f[property];
-                    return false;
-                }
-            });
-            return false;
-        }
-    });
-    return result;
-}