diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2016-09-19 11:58:32 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2016-09-21 12:13:32 +0000 |
commit | c217e28d44b135e459da50c4c7e8ad8bdf51b579 (patch) | |
tree | 0176ba299544b137af725fee44f84c837c08f71a | |
parent | 4ca72f4448d3a0a9b686fac20e0d427dc77305aa (diff) |
Remove unused methods
Change-Id: I58f0ced2ab182f51037ff36db90b5b1e3ae5cbb3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r-- | src/scxml/qscxmlparser.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/scxml/qscxmlparser.cpp b/src/scxml/qscxmlparser.cpp index 18e8112..983c8c6 100644 --- a/src/scxml/qscxmlparser.cpp +++ b/src/scxml/qscxmlparser.cpp @@ -396,25 +396,6 @@ private: return true; } - static int transitionCount(DocumentModel::State *state) - { - int count = 0; - foreach (DocumentModel::StateOrTransition *child, state->children) { - if (child->asTransition()) - ++count; - } - return count; - } - - static DocumentModel::Transition *firstTransition(DocumentModel::State *state) - { - foreach (DocumentModel::StateOrTransition *child, state->children) { - if (DocumentModel::Transition *t = child->asTransition()) - return t; - } - return Q_NULLPTR; - } - static const QVector<DocumentModel::StateOrTransition *> &allChildrenOfContainer( DocumentModel::StateContainer *container) { @@ -483,16 +464,6 @@ private: m_errorHandler(location, message); } - DocumentModel::Node *parentState() const - { - for (int i = m_parentNodes.size() - 1; i >= 0; --i) { - if (DocumentModel::State *s = m_parentNodes.at(i)->asState()) - return s; - } - - return Q_NULLPTR; - } - private: std::function<void (const DocumentModel::XmlLocation &, const QString &)> m_errorHandler; DocumentModel::ScxmlDocument *m_doc; |