diff options
author | Paul Wicking <paul.wicking@qt.io> | 2020-04-30 14:48:16 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2020-05-04 14:42:36 +0200 |
commit | ef753fa0bcb49bab15ffb0d2fa23fc2473552eb8 (patch) | |
tree | 5eb8ee53e7506594a8484458775ed50e601157b5 /src | |
parent | f9e422f3361898155bce8651a074fdea6e65f5ed (diff) | |
download | qttools-ef753fa0bcb49bab15ffb0d2fa23fc2473552eb8.tar.gz |
QDoc: Get rid of unused code in CodeChunk
Task-number: QTBUG-71176
Change-Id: Ic3bcddd7210c8386c1feff7ef791a369206e3cb3
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qdoc/codechunk.cpp | 12 | ||||
-rw-r--r-- | src/qdoc/codechunk.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/qdoc/codechunk.cpp b/src/qdoc/codechunk.cpp index d6293432e..560058abe 100644 --- a/src/qdoc/codechunk.cpp +++ b/src/qdoc/codechunk.cpp @@ -133,16 +133,4 @@ void CodeChunk::append(const QString &lexeme) s += lexeme; } -/*! - Converts the string with a regular expression that I think - removes the angle brackets parts and then splits it on "::". - The result is returned as a string list. - */ -QStringList CodeChunk::toPath() const -{ - QString t = s; - t.remove(QRegExp(QLatin1String("<([^<>]|<([^<>]|<[^<>]*>)*>)*>"))); - return t.split(QLatin1String("::")); -} - QT_END_NAMESPACE diff --git a/src/qdoc/codechunk.h b/src/qdoc/codechunk.h index 0ccc26304..43d258c8f 100644 --- a/src/qdoc/codechunk.h +++ b/src/qdoc/codechunk.h @@ -43,7 +43,6 @@ class CodeChunk { public: CodeChunk() : hotspot(-1) {} - CodeChunk(const QString &str) : s(str), hotspot(-1) {} void append(const QString &lexeme); void appendHotspot() @@ -55,7 +54,6 @@ public: bool isEmpty() const { return s.isEmpty(); } void clear() { s.clear(); } QString toString() const { return s; } - QStringList toPath() const; QString left() const { return s.left(hotspot == -1 ? s.length() : hotspot); } QString right() const { return s.mid(hotspot == -1 ? s.length() : hotspot); } |