diff options
Diffstat (limited to 'src/tools/qdoc/cppcodeparser.cpp')
-rw-r--r-- | src/tools/qdoc/cppcodeparser.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/tools/qdoc/cppcodeparser.cpp b/src/tools/qdoc/cppcodeparser.cpp index df11ee5b24..be061dbd62 100644 --- a/src/tools/qdoc/cppcodeparser.cpp +++ b/src/tools/qdoc/cppcodeparser.cpp @@ -497,27 +497,12 @@ Node* CppCodeParser::processTopicCommand(const Doc& doc, ptype = Node::DitaMapPage; } - /* - Search for a node with the same name. If there is one, - then there is a collision, so create a collision node - and make the existing node a child of the collision - node, and then create the new Page node and make - it a child of the collision node as well. Return the - collision node. - - If there is no collision, just create a new Page - node and return that one. - */ - NameCollisionNode* ncn = qdb_->checkForCollision(args[0]); DocNode* dn = 0; if (ptype == Node::DitaMapPage) dn = new DitaMapNode(qdb_->primaryTreeRoot(), args[0]); else dn = new DocNode(qdb_->primaryTreeRoot(), args[0], Node::Page, ptype); dn->setLocation(doc.startLocation()); - if (ncn) { - ncn->addCollision(dn); - } return dn; } else if (command == COMMAND_DITAMAP) { @@ -549,40 +534,9 @@ Node* CppCodeParser::processTopicCommand(const Doc& doc, classNode = qdb_->findClassNode(names[1].split("::")); } - /* - Search for a node with the same name. If there is one, - then there is a collision, so create a collision node - and make the existing node a child of the collision - node, and then create the new QML class node and make - it a child of the collision node as well. Return the - collision node. - - If there is no collision, just create a new QML class - node and return that one. - */ - NameCollisionNode* ncn = qdb_->checkForCollision(names[0]); QmlClassNode* qcn = new QmlClassNode(qdb_->primaryTreeRoot(), names[0]); qcn->setClassNode(classNode); qcn->setLocation(doc.startLocation()); -#if 0 - // to be removed if \qmltype and \instantiates work ok - if (isParsingCpp() || isParsingQdoc()) { - qcn->requireCppClass(); - if (names.size() < 2) { - QString msg = "C++ class name not specified for class documented as " - "QML type: '\\qmlclass " + arg.first + " <class name>'"; - doc.startLocation().warning(tr(msg.toLatin1().data())); - } - else if (!classNode) { - QString msg = "C++ class not found in any .h file for class documented " - "as QML type: '\\qmlclass " + arg.first + "'"; - doc.startLocation().warning(tr(msg.toLatin1().data())); - } - } -#endif - if (ncn) { - ncn->addCollision(qcn); - } return qcn; } else if (command == COMMAND_QMLBASICTYPE) { |