summaryrefslogtreecommitdiffstats
path: root/tools/linguist/shared
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-05 21:39:24 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-11-06 21:58:00 (GMT)
commit79864599ec3a1ce5a5ede84ea2d3d7ba437a3257 (patch)
tree3ce6f960c0fc8242cd94afacc2f2f1488f9f1bf1 /tools/linguist/shared
parent360a51d64c607f5efae7a4f25a9a519424399b69 (diff)
downloadQt-79864599ec3a1ce5a5ede84ea2d3d7ba437a3257.zip
Qt-79864599ec3a1ce5a5ede84ea2d3d7ba437a3257.tar.gz
Qt-79864599ec3a1ce5a5ede84ea2d3d7ba437a3257.tar.bz2
don't construct a new message for look-up purposes only
Diffstat (limited to 'tools/linguist/shared')
-rw-r--r--tools/linguist/shared/translator.cpp8
-rw-r--r--tools/linguist/shared/translator.h2
2 files changed, 0 insertions, 10 deletions
diff --git a/tools/linguist/shared/translator.cpp b/tools/linguist/shared/translator.cpp
index cd670cc..3b7ee9a 100644
--- a/tools/linguist/shared/translator.cpp
+++ b/tools/linguist/shared/translator.cpp
@@ -319,14 +319,6 @@ bool Translator::contains(const QString &context,
}
TranslatorMessage Translator::find(const QString &context,
- const QString &sourceText, const QString &comment) const
-{
- TranslatorMessage needle(context, sourceText, comment, QString(), QString(), 0);
- int index = m_messages.indexOf(needle);
- return index == -1 ? TranslatorMessage() : m_messages.at(index);
-}
-
-TranslatorMessage Translator::find(const QString &context,
const QString &comment, const TranslatorMessage::References &refs) const
{
if (!refs.isEmpty()) {
diff --git a/tools/linguist/shared/translator.h b/tools/linguist/shared/translator.h
index ef81d2a..6db6f3a 100644
--- a/tools/linguist/shared/translator.h
+++ b/tools/linguist/shared/translator.h
@@ -115,8 +115,6 @@ public:
bool contains(const QString &context, const QString &sourceText,
const QString &comment) const;
- TranslatorMessage find(const QString &context,
- const QString &sourceText, const QString &comment) const;
TranslatorMessage find(const QString &context,
const QString &comment, const TranslatorMessage::References &refs) const;