diff options
| author | Martin Smith <martin.smith@nokia.com> | 2012-07-05 13:58:17 +0200 |
|---|---|---|
| committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-06 03:54:26 +0200 |
| commit | 2f0dbd04394c6829726aa9ab48d6746b00c1b42c (patch) | |
| tree | 5d051d1ca206a10336e182b0afd26081a9066b92 /src/tools/qdoc/htmlgenerator.cpp | |
| parent | e17c87df9c4e31cb23cc71758972ac1254a415db (diff) | |
qdoc: Removed several #if 0 blocks.
Removed a lot of dead code.
Change-Id: I237521efab7dd046d3a47ab92a6a0e083c59ab55
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/tools/qdoc/htmlgenerator.cpp')
| -rw-r--r-- | src/tools/qdoc/htmlgenerator.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/tools/qdoc/htmlgenerator.cpp b/src/tools/qdoc/htmlgenerator.cpp index d5de02a3a89..4923b23780e 100644 --- a/src/tools/qdoc/htmlgenerator.cpp +++ b/src/tools/qdoc/htmlgenerator.cpp @@ -2373,57 +2373,6 @@ void HtmlGenerator::generateCompactList(const Node *relative, QChar common(idx); commonPrefix = common; commonPrefixLen = 1; - -#if 0 - /* - The algorithm below eventually failed, so it was replaced - with the simple (perhaps too simple) algorithm above. - - The caller didn't pass in a common prefix, so get the common - prefix by looking at the class names of the first and last - classes in the class map. Discard any namespace names and - just use the bare class names. For Qt, the prefix is "Q". - - Note that the algorithm used here to derive the common prefix - from the first and last classes in alphabetical order (QAccel - and QXtWidget in Qt 2.1), fails if either class name does not - begin with Q. - */ - QString first; - QString last; - NodeMap::const_iterator iter = classMap.constBegin(); - while (iter != classMap.constEnd()) { - if (!iter.key().contains("::")) { - first = iter.key(); - break; - } - ++iter; - } - - if (first.isEmpty()) - first = classMap.constBegin().key(); - - iter = classMap.constEnd(); - while (iter != classMap.constBegin()) { - --iter; - if (!iter.key().contains("::")) { - last = iter.key(); - break; - } - } - - if (last.isEmpty()) - last = classMap.constBegin().key(); - - if (classMap.size() > 1) { - while (commonPrefixLen < first.length() + 1 && - commonPrefixLen < last.length() + 1 && - first[commonPrefixLen] == last[commonPrefixLen]) - ++commonPrefixLen; - } - - commonPrefix = first.left(commonPrefixLen); -#endif } /* |
