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

Oliver Kellogg okellogg at users.sourceforge.net
Thu Jun 7 09:57:40 UTC 2007


SVN commit 672500 by okellogg:

UMLOperation::addParm(type,name,initialValue,doc,kind): Unused, remove.


 M  +0 -4      dialogs/umloperationdialog.cpp  
 M  +0 -12     operation.cpp  
 M  +0 -14     operation.h  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/dialogs/umloperationdialog.cpp #672499:672500
@@ -326,10 +326,6 @@
             return;
         }
         if( !pAtt ) {
-            /*
-            m_pOperation->addParm( dlg.getTypeName(), name, dlg.getInitialValue(),
-                               dlg.getDoc(), dlg.getParmKind() );
-             */
             newAttribute->setID( UniqueID::gen() );
             newAttribute->setName( name );
             newAttribute->setTypeName( dlg.getTypeName() );
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/operation.cpp #672499:672500
@@ -46,18 +46,6 @@
 UMLOperation::~UMLOperation() {
 }
 
-UMLAttribute * UMLOperation::addParm(const QString& type, const QString& name,
-                                     const QString& initialValue, const QString& doc,
-                                     Uml::Parameter_Direction kind) {
-    // make the new parameter (attribute) public, just to be safe
-    UMLAttribute * a = new UMLAttribute(this, name, UniqueID::gen(), Uml::Visibility::Public, type);
-    a -> setDoc(doc);
-    a -> setInitialValue(initialValue);
-    a -> setParmKind(kind);
-    addParm(a);
-    return a;
-}
-
 void UMLOperation::moveParmLeft(UMLAttribute * a) {
     if (a == NULL) {
         kDebug() << "UMLOperation::moveParmLeft called on NULL attribute"
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/operation.h #672499:672500
@@ -75,20 +75,6 @@
     virtual UMLObject* clone() const;
 
     /**
-     * Add a parameter to the operation.
-     *
-     * @param type              The type of the parameter.
-     * @param name              The name of the parameter.
-     * @param initialValue      The initial value of the parameter.
-     * @param kind              Optional: The parameter kind (in|inout|out).
-     *                      Default is "in".
-     * @return  Pointer to the UMLAttribute created.
-     */
-    UMLAttribute * addParm(const QString& type, const QString& name,
-                           const QString& initialValue, const QString& doc,
-                           Uml::Parameter_Direction kind = Uml::pd_In);
-
-    /**
      * Move a parameter one position to the left.
      *
      * @param a         The parameter to move.




More information about the umbrello-devel mailing list