summaryrefslogtreecommitdiffstats
path: root/tools/linguist/shared
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-05 21:47:54 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-06 21:58:00 (GMT)
commitcfb02f6e1434b0d9ebf9d65cc5048036418bb64d (patch)
tree434821f4e9f31ad0e51807280f08ac2ef8c3e638 /tools/linguist/shared
parentffa332a3c8eef08695791b9fdccfd2677ec325fc (diff)
downloadQt-cfb02f6e1434b0d9ebf9d65cc5048036418bb64d.zip
Qt-cfb02f6e1434b0d9ebf9d65cc5048036418bb64d.tar.gz
Qt-cfb02f6e1434b0d9ebf9d65cc5048036418bb64d.tar.bz2
remove unused TranslatorMessage::operator<()
it was once needed for QMap, but we don't use that any more
Diffstat (limited to 'tools/linguist/shared')
-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; }