[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Tue May 16 22:52:02 UTC 2006


SVN commit 541721 by okellogg:

remove unused constructor

 M  +3 -11     codedocument.cpp  
 M  +0 -1      codedocument.h  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codedocument.cpp #541720:541721
@@ -27,16 +27,6 @@
 // Constructors/Destructors
 //
 
-/**
- * Basic constructor for class.
- * @param       gen
- */
-CodeDocument::CodeDocument (QDomElement & elem) : CodeGenObjectWithTextBlocks(this)
-{
-    initDoc();
-    loadFromXMI(elem);
-}
-
 CodeDocument::CodeDocument () : CodeGenObjectWithTextBlocks(this)
 {
     initDoc();
@@ -455,7 +445,9 @@
 }
 
 HierarchicalCodeBlock * CodeDocument::newHierarchicalCodeBlock ( ) {
-    return new HierarchicalCodeBlock(this);
+    HierarchicalCodeBlock *hb = new HierarchicalCodeBlock(this);
+    //hb->update();
+    return hb;
 }
 
 void CodeDocument::removeChildTagFromMap ( const QString &tag )
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codedocument.h #541720:541721
@@ -59,7 +59,6 @@
      * Basic constructor for class.
      */
     CodeDocument ( );
-    CodeDocument ( QDomElement & element );
 
     /**
      * Empty Destructor




More information about the umbrello-devel mailing list