diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-04-29 12:16:51 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-04-29 12:16:51 (GMT) |
commit | 90c9f525bffe2418bc4d246645adca8c731f7774 (patch) | |
tree | 8a1a2a18a57751ef2027055adef0fb8c6c26fe19 /src | |
parent | 6558134ec1dbf13ab56a40b0b269a50e92feb188 (diff) | |
download | Qt-90c9f525bffe2418bc4d246645adca8c731f7774.zip Qt-90c9f525bffe2418bc4d246645adca8c731f7774.tar.gz Qt-90c9f525bffe2418bc4d246645adca8c731f7774.tar.bz2 |
kill QStateMachine::states() and QState::transitions()
Result of API review. Don't need them (for now).
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/statemachine/qstate.cpp | 12 | ||||
-rw-r--r-- | src/corelib/statemachine/qstate.h | 1 | ||||
-rw-r--r-- | src/corelib/statemachine/qstatemachine.cpp | 9 | ||||
-rw-r--r-- | src/corelib/statemachine/qstatemachine.h | 1 |
4 files changed, 0 insertions, 23 deletions
diff --git a/src/corelib/statemachine/qstate.cpp b/src/corelib/statemachine/qstate.cpp index 5b49f1f..173cc8d 100644 --- a/src/corelib/statemachine/qstate.cpp +++ b/src/corelib/statemachine/qstate.cpp @@ -370,18 +370,6 @@ void QState::removeTransition(QAbstractTransition *transition) } /*! - Returns the list of transitions from this state, or an empty list if there - are no transitions from this state. - - \sa addTransition(), removeTransition() -*/ -QList<QAbstractTransition*> QState::transitions() const -{ - Q_D(const QState); - return d->transitions(); -} - -/*! \reimp */ void QState::onEntry() diff --git a/src/corelib/statemachine/qstate.h b/src/corelib/statemachine/qstate.h index 926d41f..9faef26 100644 --- a/src/corelib/statemachine/qstate.h +++ b/src/corelib/statemachine/qstate.h @@ -82,7 +82,6 @@ public: QSignalTransition *addTransition(QObject *sender, const char *signal, QAbstractState *target); QAbstractTransition *addTransition(QAbstractState *target); void removeTransition(QAbstractTransition *transition); - QList<QAbstractTransition*> transitions() const; QAbstractState *initialState() const; void setInitialState(QAbstractState *state); diff --git a/src/corelib/statemachine/qstatemachine.cpp b/src/corelib/statemachine/qstatemachine.cpp index b278bb5..8dfb229 100644 --- a/src/corelib/statemachine/qstatemachine.cpp +++ b/src/corelib/statemachine/qstatemachine.cpp @@ -1736,15 +1736,6 @@ void QStateMachine::postInternalEvent(QEvent *event) } /*! - Returns the list of this state machine's states, or an empty list if the - state machine has no states. -*/ -QList<QAbstractState*> QStateMachine::states() const -{ - return QStatePrivate::get(rootState())->childStates(); -} - -/*! \internal Returns the maximal consistent set of states (including parallel and final diff --git a/src/corelib/statemachine/qstatemachine.h b/src/corelib/statemachine/qstatemachine.h index bbe85e2..6e504d0 100644 --- a/src/corelib/statemachine/qstatemachine.h +++ b/src/corelib/statemachine/qstatemachine.h @@ -121,7 +121,6 @@ public: void postEvent(QEvent *event, int delay = 0); - QList<QAbstractState*> states() const; QSet<QAbstractState*> configuration() const; #ifndef QT_NO_STATEMACHINE_EVENTFILTER |