diff options
author | Pierre Rossi <[email protected]> | 2012-09-25 14:35:12 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2012-09-28 07:32:55 +0200 |
commit | a1521579983860f4f7b02d6eddc478448715ac0b (patch) | |
tree | 7e32adda9392b5511f8f3dca9ddd662944b72d1a /src/tools/qdoc/codeparser.cpp | |
parent | e47faabe238d856ff6c1454a7fc9483461206b37 (diff) |
QDoc: remove the experimental basedir variable
It was introduced in the early days of the docs'
modularization and appears not to be used anywhere
anymore.
Change-Id: I5b0c60d92828624af2129153fce96ad01aec861c
Reviewed-by: Martin Smith <[email protected]>
Diffstat (limited to 'src/tools/qdoc/codeparser.cpp')
-rw-r--r-- | src/tools/qdoc/codeparser.cpp | 49 |
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 |