summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/codeparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qdoc/codeparser.cpp')
-rw-r--r--src/tools/qdoc/codeparser.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/tools/qdoc/codeparser.cpp b/src/tools/qdoc/codeparser.cpp
index 6bd13f3d7b3..6ecca78a70b 100644
--- a/src/tools/qdoc/codeparser.cpp
+++ b/src/tools/qdoc/codeparser.cpp
@@ -364,55 +364,6 @@ void CodeParser::setLink(Node* node, Node::LinkType linkType, const QString& arg
}
/*!
- If the \e {basedir} variable is not set in the qdocconf
- file, do nothing.
-
- Otherwise, search for the basedir string string in the
- \a filePath. It must be found, or else a warning message
- is output. Extract the subdirectory name that follows the
- basedir name and create a subdirectory using that name
- in the output director.
- */
-void CodeParser::createOutputSubdirectory(const Location& location,
- const QString& filePath)
-{
- QString bd = Generator::baseDir();
- if (!bd.isEmpty()) {
- int baseIdx = filePath.indexOf(bd);
- if (baseIdx == -1)
- location.warning(tr("File path: '%1' does not contain bundle base dir: '%2'")
- .arg(filePath).arg(bd));
- else {
- int subDirIdx = filePath.indexOf(QLatin1Char('/'),baseIdx);
- if (subDirIdx == -1)
- location.warning(tr("File path: '%1' has no sub dir after bundle base dir: '%2'")
- .arg(filePath).arg(bd));
- else {
- ++subDirIdx;
- int fileNameIdx = filePath.indexOf(QLatin1Char('/'),subDirIdx);
- if (fileNameIdx == -1)
- location.warning(tr("File path: '%1' has no file name after sub dir: '%2/'")
- .arg(filePath).arg(filePath.mid(subDirIdx)));
- else {
- currentSubDir_ = filePath.mid(subDirIdx,fileNameIdx-subDirIdx);
- if (currentSubDir_.isEmpty())
- location.warning(tr("File path: '%1' has no sub dir after bundle base dir: '%2'")
- .arg(filePath).arg(bd));
- else {
- QString subDirPath = Generator::outputDir() + QLatin1Char('/') + currentSubDir_;
- QDir dirInfo;
- if (!dirInfo.exists(subDirPath)) {
- if (!dirInfo.mkpath(subDirPath))
- location.fatal(tr("Cannot create output sub-directory '%1'").arg(currentSubDir_));
- }
- }
- }
- }
- }
- }
-}
-
-/*!
Returns true if the file being parsed is a .h file.
*/
bool CodeParser::isParsingH() const