this code is redundant and leaks memory

Change-Id: Ib57f44c203ead68102d712ef29ab7362b0cea8db
This commit is contained in:
Markus Mohrhard
2014-08-25 12:00:19 +02:00
parent 5d05367268
commit c76b5ace20

View File

@@ -744,9 +744,6 @@ bool NodeJava::createSettingsDocument() const
CXmlDocPtr doc(xmlNewDoc((xmlChar *)"1.0"));
if (! doc)
throw FrameworkException(JFW_E_ERROR, sExcMsg);
//Create a comment
xmlNewDocComment(
doc, (xmlChar *) "This is a generated file. Do not alter this file!");
//Create the root element and name spaces
xmlNodePtr root = xmlNewDocNode(