Commit 20e3d9a9 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Jérome Perrin

unused code dropped

parent c2a02cfa
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
function addField(property_id, property_definition, value) { function addField(property_id, property_definition, value) {
console.log("ADDFIELD EXPANDABLEFIELDSET 1"); console.log("ADDFIELD EXPANDABLEFIELDSET 1");
var sub_gadget, temp_property_def; var sub_gadget;
try { try {
queue queue
.push(function () { .push(function () {
...@@ -55,13 +55,6 @@ ...@@ -55,13 +55,6 @@
"name": (property_definition.name || property_id) "name": (property_definition.name || property_id)
}) })
); );
if (property_definition.allOf) {
if (property_definition.allOf[0].type) {
delete property_definition.allOf[0].type;
}
temp_property_def = property_definition.allOf[0];
return gadget.declareGadget("../list_field/index.html");
}
if (property_definition.type === "object") { if (property_definition.type === "object") {
// Create a recursive fieldset for this key. // Create a recursive fieldset for this key.
return gadget.declareGadget("../fieldset/index.html"); return gadget.declareGadget("../fieldset/index.html");
...@@ -76,13 +69,6 @@ ...@@ -76,13 +69,6 @@
}) })
.push(function (gg) { .push(function (gg) {
sub_gadget = gg; sub_gadget = gg;
if (temp_property_def) {
return sub_gadget.render({
key: property_id,
value: value,
property_definition: temp_property_def
});
}
return sub_gadget.render({ return sub_gadget.render({
key: property_id, key: property_id,
value: value, value: value,
...@@ -110,13 +96,6 @@ ...@@ -110,13 +96,6 @@
"name": (property_definition.name || property_id) "name": (property_definition.name || property_id)
}) })
); );
if (property_definition.allOf) {
if (property_definition.allOf[0].type) {
delete property_definition.allOf[0].type;
}
temp_property_def = property_definition.allOf[0];
return gadget.declareGadget("../list_field/index.html");
}
if (property_definition.type === "object") { if (property_definition.type === "object") {
// Create a recursive fieldset for this key. // Create a recursive fieldset for this key.
return gadget.declareGadget("../fieldset/index.html"); return gadget.declareGadget("../fieldset/index.html");
...@@ -131,13 +110,6 @@ ...@@ -131,13 +110,6 @@
}) })
.push(function (gg) { .push(function (gg) {
sub_gadget = gg; sub_gadget = gg;
if (temp_property_def) {
return sub_gadget.render({
key: property_id,
value: value,
property_definition: temp_property_def
});
}
return sub_gadget.render({ return sub_gadget.render({
key: property_id, key: property_id,
value: value, value: value,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment