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

Andi Fischer andi.fischer at hispeed.ch
Sat Apr 7 13:24:28 UTC 2012


SVN commit 1288527 by fischer:

Not used function removed.

 M  +0 -27     statewidget.cpp  
 M  +0 -4      statewidget.h  


--- trunk/KDE/kdesdk/umbrello/umbrello/widgets/statewidget.cpp #1288526:1288527
@@ -440,33 +440,6 @@
 }
 
 /**
- * Returns true if the given toolbar button represents a State.
- *
- * @param tbb          Input value of type WorkToolBar::ToolBar_Buttons.
- * @param resultType   Output value, the StateType that corresponds to tbb.
- *                     Only set if the method returns true.
- */
-bool StateWidget::isState(WorkToolBar::ToolBar_Buttons tbb, StateType& resultType)
-{
-    bool status = true;
-    switch (tbb) {
-    case WorkToolBar::tbb_Initial_State:
-        resultType = Initial;
-        break;
-    case WorkToolBar::tbb_State:
-        resultType = Normal;
-        break;
-    case WorkToolBar::tbb_End_State:
-        resultType = End;
-        break;
-    default:
-        status = false;
-        break;
-    }
-    return status;
-}
-
-/**
  * Creates the "statewidget" XMI element.
  */
 void StateWidget::saveToXMI(QDomDocument & qDoc, QDomElement & qElement)
--- trunk/KDE/kdesdk/umbrello/umbrello/widgets/statewidget.h #1288526:1288527
@@ -16,7 +16,6 @@
 #include <QMetaEnum>
 
 #include "umlwidget.h"
-#include "worktoolbar.h"
 
 #define STATE_MARGIN 5
 #define STATE_WIDTH 30
@@ -80,9 +79,6 @@
 
     virtual void showPropertiesDialog();
 
-    static bool isState(WorkToolBar::ToolBar_Buttons tbb,
-                        StateType& resultType);
-
     virtual bool loadFromXMI(QDomElement & qElement);
     virtual void saveToXMI(QDomDocument & qDoc, QDomElement & qElement);
 




More information about the umbrello-devel mailing list