summaryrefslogtreecommitdiff
path: root/src/qdoc/codechunk.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2019-01-22 15:52:49 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2019-01-23 15:42:44 +0000
commit0b919969cebeeb531a45dc4a95871cc279343281 (patch)
treec62d3b550383adc4b885c17914e30efa3426bdcb /src/qdoc/codechunk.cpp
parentf17ec3aac885cd347a3d3c6d74541a9aadc5fc78 (diff)
downloadqttools-0b919969cebeeb531a45dc4a95871cc279343281.tar.gz
Inline various simple methods in QDoc
Change-Id: Ie2ea694bd319f483e9a70f5934031028e0894976 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/qdoc/codechunk.cpp')
-rw-r--r--src/qdoc/codechunk.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/qdoc/codechunk.cpp b/src/qdoc/codechunk.cpp
index 82aeaae0c..277622962 100644
--- a/src/qdoc/codechunk.cpp
+++ b/src/qdoc/codechunk.cpp
@@ -89,16 +89,6 @@ static int category( QChar ch )
return charCategory[static_cast<int>(ch.toLatin1())];
}
-CodeChunk::CodeChunk()
- : hotspot( -1 )
-{
-}
-
-CodeChunk::CodeChunk( const QString& str )
- : s( str ), hotspot( -1 )
-{
-}
-
void CodeChunk::append( const QString& lexeme )
{
if ( !s.isEmpty() && !lexeme.isEmpty() ) {
@@ -114,20 +104,6 @@ void CodeChunk::append( const QString& lexeme )
s += lexeme;
}
-void CodeChunk::appendHotspot()
-{
- /*
- The first hotspot is the right one.
- */
- if ( hotspot == -1 )
- hotspot = s.length();
-}
-
-QString CodeChunk::toString() const
-{
- return s;
-}
-
QStringList CodeChunk::toPath() const
{
QString t = s;