[Uml-devel] KDE/kdesdk/umbrello/umbrello/codegenerators

Oliver Kellogg okellogg at users.sourceforge.net
Fri Sep 14 18:35:40 UTC 2007


SVN commit 712547 by okellogg:

remove unused vars admonished by dashboard

 M  +2 -1      cppsourcecodeclassfielddeclarationblock.cpp  
 M  +0 -1      dcodeaccessormethod.cpp  
 M  +0 -3      dcodeclassfielddeclarationblock.cpp  
 M  +3 -3      idlwriter.cpp  
 M  +0 -1      javacodeaccessormethod.cpp  
 M  +0 -2      javacodeclassfielddeclarationblock.cpp  
 M  +0 -1      php5writer.cpp  
 M  +0 -1      rubycodeaccessormethod.cpp  
 M  +0 -2      rubycodeclassfielddeclarationblock.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/cppsourcecodeclassfielddeclarationblock.cpp #712546:712547
@@ -5,6 +5,8 @@
  *   the Free Software Foundation; either version 2 of the License, or     *
  *   (at your option) any later version.                                   *
  *                                                                         *
+ *   copyright (C) 2004-2007                                               *
+ *   Umbrello UML Modeller Authors <uml-devel at uml.sf.net>                  *
  ***************************************************************************/
 
 /*  This code generated by:
@@ -41,7 +43,6 @@
 {
 
     CodeClassField * cf = getParentClassField();
-    ClassifierCodeDocument * doc = cf->getParentDocument();
     CPPCodeClassField * jcf = dynamic_cast<CPPCodeClassField*>(cf);
 
     // Set the comment
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/dcodeaccessormethod.cpp #712546:712547
@@ -131,7 +131,6 @@
 {
 
     DCodeClassField * dfield = dynamic_cast<DCodeClassField*>(getParentClassField());
-    DClassifierCodeDocument * ddoc = dynamic_cast<DClassifierCodeDocument*>(dfield->getParentDocument());
     CodeGenerationPolicy *commonpolicy = UMLApp::app()->getCommonPolicy();
 
     // gather defs
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/dcodeclassfielddeclarationblock.cpp #712546:712547
@@ -1,4 +1,3 @@
-
 /***************************************************************************
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -46,9 +45,7 @@
 {
 
     CodeClassField * cf = getParentClassField();
-    ClassifierCodeDocument * doc = cf->getParentDocument();
     DCodeClassField * jcf = dynamic_cast<DCodeClassField*>(cf);
-    DClassifierCodeDocument* jdoc = dynamic_cast<DClassifierCodeDocument*>(doc);
     CodeGenerationPolicy * commonpolicy = UMLApp::app()->getCommonPolicy();
 
     Uml::Visibility::Value scopePolicy = commonpolicy->getAssociationFieldScope();
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/idlwriter.cpp #712546:712547
@@ -180,7 +180,7 @@
         m_indentLevel--;
         idl << getIndent() << "};" << m_endl << m_endl;
         // Close the modules inside which we might be nested.
-        foreach ( UMLPackage* pkg,  pkgList ) {
+        for (int i = 0; i < pkgList.count(); i++) {
             m_indentLevel--;
             idl << getIndent() << "};" << m_endl << m_endl;
         }
@@ -256,7 +256,7 @@
             idl << getIndent() << "// " << stype << ": Unknown stereotype" << m_endl << m_endl;
         }
         // Close the modules inside which we might be nested.
-        foreach ( UMLPackage* pkg , pkgList ) {
+        for (int i = 0; i < pkgList.count(); i++) {
             m_indentLevel--;
             idl << getIndent() << "};" << m_endl << m_endl;
         }
@@ -376,7 +376,7 @@
     idl << getIndent() << "};" << m_endl << m_endl;
 
     // Close the modules inside which we might be nested.
-    foreach ( UMLPackage* pkg,  pkgList ) {
+    for (int i = 0; i < pkgList.count(); i++) {
         m_indentLevel--;
         idl << getIndent() << "};" << m_endl << m_endl;
     }
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/javacodeaccessormethod.cpp #712546:712547
@@ -135,7 +135,6 @@
 {
 
     JavaCodeClassField * javafield = dynamic_cast<JavaCodeClassField*>(getParentClassField());
-    JavaClassifierCodeDocument * javadoc = dynamic_cast<JavaClassifierCodeDocument*>(javafield->getParentDocument());
     CodeGenerationPolicy *commonpolicy = UMLApp::app()->getCommonPolicy();
 
     // gather defs
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/javacodeclassfielddeclarationblock.cpp #712546:712547
@@ -50,9 +50,7 @@
 {
 
     CodeClassField * cf = getParentClassField();
-    ClassifierCodeDocument * doc = cf->getParentDocument();
     JavaCodeClassField * jcf = dynamic_cast<JavaCodeClassField*>(cf);
-    JavaClassifierCodeDocument* jdoc = dynamic_cast<JavaClassifierCodeDocument*>(doc);
     CodeGenerationPolicy * commonpolicy = UMLApp::app()->getCommonPolicy();
 
     Uml::Visibility::Value scopePolicy = commonpolicy->getAssociationFieldScope();
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/php5writer.cpp #712546:712547
@@ -3033,7 +3033,6 @@
     //write includes
     UMLPackageList includes;
     findObjectsRelated(c,includes);
-    UMLPackage *conc;
     foreach(UMLPackage* conc, includes ) {
         QString headerName = findFileName(conc, ".php");
         if (!headerName.isEmpty()) {
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/rubycodeaccessormethod.cpp #712546:712547
@@ -139,7 +139,6 @@
 {
 
     RubyCodeClassField * rubyfield = dynamic_cast<RubyCodeClassField*>(getParentClassField());
-    RubyClassifierCodeDocument * rubydoc = dynamic_cast<RubyClassifierCodeDocument*>(rubyfield->getParentDocument());
 
     // gather defs
     CodeGenerationPolicy *p = UMLApp::app()->getCommonPolicy();
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/rubycodeclassfielddeclarationblock.cpp #712546:712547
@@ -45,9 +45,7 @@
 {
 
     CodeClassField * cf = getParentClassField();
-    ClassifierCodeDocument * doc = cf->getParentDocument();
     RubyCodeClassField * rcf = dynamic_cast<RubyCodeClassField*>(cf);
-    RubyClassifierCodeDocument* rdoc = dynamic_cast<RubyClassifierCodeDocument*>(doc);
     CodeGenerationPolicy * p = UMLApp::app()->getCommonPolicy();
     Uml::Visibility::Value scopePolicy = p->getAssociationFieldScope();
 




More information about the umbrello-devel mailing list