浏览代码

Remove some prints

Yentl Van Tendeloo 7 年之前
父节点
当前提交
3b73abefb4
共有 2 个文件被更改,包括 12 次插入2 次删除
  1. 0 2
      bootstrap/conformance_finding.alc
  2. 12 0
      bootstrap/modelling.alc

+ 0 - 2
bootstrap/conformance_finding.alc

@@ -33,8 +33,6 @@ Boolean function find_type_mapping(model : Element):
 	// TODO this must be expanded for other things than trivial metamodels!
 	if (dict_len(model["model"]) > dict_len(tm)):
 		log("Model is incompletely typed!")
-		log("Model has: " + set_to_string(dict_keys(model["model"])))
-		log("Type mapping has: " + set_to_string(dict_keys(tm)))
 		log("Difference: " + set_to_string(set_difference(dict_keys(model["model"]), dict_keys(tm))))
 
 		// TODO for now, this only returns something for a simple case, where the MM has one edge, and one node

+ 12 - 0
bootstrap/modelling.alc

@@ -360,6 +360,18 @@ String function instantiate_link(model : Element, type : String, name : String,
 	return actual_name!
 
 Void function model_delete_element(model : Element, name : String):
+	// Delete all attributes
+	//Element attrs
+	//String attr
+	//attrs = dict_keys(getAttributeList(model, name))
+	//while (set_len(attrs) > 0):
+	//	attr = set_pop(attrs)
+	//	log("Remove attr " + attr)
+	//	attr = reverseKeyLookup(model["model"], read_attribute(model, name, attr))
+	//	remove_type(model, attr)
+	//	delete_element(model["model"][attr])
+
+	// Delete element itself
 	remove_type(model, name)
 	delete_element(model["model"][name])
 	return!