summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-05 21:47:54 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-11-11 17:21:18 (GMT)
commit5ca3d99ef2c5dc8e28528e747ffe114aeb3a5939 (patch)
treeee7bb8cc7bb648d7c2e6b33e1e50acb6be20bd34 /tools
parentcc7d26f7cb696db64a6a78fee3a2762f73055481 (diff)
downloadQt-5ca3d99ef2c5dc8e28528e747ffe114aeb3a5939.zip
Qt-5ca3d99ef2c5dc8e28528e747ffe114aeb3a5939.tar.gz
Qt-5ca3d99ef2c5dc8e28528e747ffe114aeb3a5939.tar.bz2
remove unused TranslatorMessage::operator<()
it was once needed for QMap, but we don't use that any more
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/shared/translatormessage.cpp11
-rw-r--r--tools/linguist/shared/translatormessage.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/tools/linguist/shared/translatormessage.cpp b/tools/linguist/shared/translatormessage.cpp
index db6f333..0e7cb18 100644
--- a/tools/linguist/shared/translatormessage.cpp
+++ b/tools/linguist/shared/translatormessage.cpp
@@ -156,17 +156,6 @@ bool TranslatorMessage::operator==(const TranslatorMessage& m) const
}
-bool TranslatorMessage::operator<(const TranslatorMessage& m) const
-{
- if (m_context != m.m_context)
- return m_context < m.m_context;
- if (m_sourcetext != m.m_sourcetext)
- return m_sourcetext < m.m_sourcetext;
- if (m_comment != m.m_comment)
- return m_comment < m.m_comment;
- return m_id < m.m_id;
-}
-
int qHash(const TranslatorMessage &msg)
{
return
diff --git a/tools/linguist/shared/translatormessage.h b/tools/linguist/shared/translatormessage.h
index 675bba7..fb3cc4b 100644
--- a/tools/linguist/shared/translatormessage.h
+++ b/tools/linguist/shared/translatormessage.h
@@ -110,7 +110,6 @@ public:
}
bool operator==(const TranslatorMessage& m) const;
- bool operator<(const TranslatorMessage& m) const;
QString fileName() const { return m_fileName; }
void setFileName(const QString &fileName) { m_fileName = fileName; }