From e94893ddf496f3648848d0209bc5b63345411341 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Fri, 6 Jul 2012 12:16:59 +0200 Subject: qdoc: Removed several #if 1 macros. The code should be there. Also removed a few obsolete #defines. Change-Id: Id63418b344157a99ac502329eea4f0bc9dc77849 Reviewed-by: Casper van Donderen --- src/tools/qdoc/atom.h | 2 -- src/tools/qdoc/ditaxmlgenerator.cpp | 6 ------ src/tools/qdoc/htmlgenerator.cpp | 18 ------------------ src/tools/qdoc/location.h | 2 -- 4 files changed, 28 deletions(-) diff --git a/src/tools/qdoc/atom.h b/src/tools/qdoc/atom.h index 0ab0c9cf57..80e6625bc9 100644 --- a/src/tools/qdoc/atom.h +++ b/src/tools/qdoc/atom.h @@ -48,8 +48,6 @@ #include -#define QDOC_QML - QT_BEGIN_NAMESPACE class Atom diff --git a/src/tools/qdoc/ditaxmlgenerator.cpp b/src/tools/qdoc/ditaxmlgenerator.cpp index e5c500c441..e309784ce1 100644 --- a/src/tools/qdoc/ditaxmlgenerator.cpp +++ b/src/tools/qdoc/ditaxmlgenerator.cpp @@ -3860,12 +3860,6 @@ QString DitaXmlGenerator::linkForNode(const Node* node, const Node* relative) node, not the file for node. */ fn = fileName(relative); -#if DEBUG_ABSTRACT - qDebug() << "ABSTRACT:" << node->parent()->name() - << node->name() << relative->name() - << node->parent()->type() << node->parent()->subType() - << relative->type() << relative->subType() << outFileName(); -#endif } } } diff --git a/src/tools/qdoc/htmlgenerator.cpp b/src/tools/qdoc/htmlgenerator.cpp index 4923b23780..769e0ae5f3 100644 --- a/src/tools/qdoc/htmlgenerator.cpp +++ b/src/tools/qdoc/htmlgenerator.cpp @@ -2527,16 +2527,10 @@ void HtmlGenerator::generateFunctionIndex(const Node *relative, char nextLetter = 'a'; char currentLetter; -#if 1 out() << "
    \n"; -#endif QMap::ConstIterator f = funcIndex.constBegin(); while (f != funcIndex.constEnd()) { -#if 1 out() << "
  • "; -#else - out() << "

    "; -#endif out() << protectEnc(f.key()) << ':'; currentLetter = f.key()[0].unicode(); @@ -2551,17 +2545,11 @@ void HtmlGenerator::generateFunctionIndex(const Node *relative, generateFullName((*s)->parent(), relative, marker, *s); ++s; } -#if 1 out() << "

  • "; -#else - out() << "

    "; -#endif out() << '\n'; ++f; } -#if 1 out() << "
\n"; -#endif } void HtmlGenerator::generateLegaleseList(const Node *relative, @@ -3377,12 +3365,6 @@ QString HtmlGenerator::linkForNode(const Node *node, const Node *relative) node, not the file for node. */ fn = fileName(relative); -#if DEBUG_ABSTRACT - qDebug() << "ABSTRACT:" << node->parent()->name() - << node->name() << relative->name() - << node->parent()->type() << node->parent()->subType() - << relative->type() << relative->subType() << outFileName(); -#endif } } } diff --git a/src/tools/qdoc/location.h b/src/tools/qdoc/location.h index 1e1333f782..1a653394e7 100644 --- a/src/tools/qdoc/location.h +++ b/src/tools/qdoc/location.h @@ -50,8 +50,6 @@ #include "tr.h" -#define QDOC_QML - QT_BEGIN_NAMESPACE class Config; -- cgit v1.2.3