summaryrefslogtreecommitdiffstats
path: root/tools/linguist
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-06-11 11:43:26 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-06-15 18:17:27 (GMT)
commit388e97292a6b33948a2a8750e1b7813caee324eb (patch)
tree2790d204f14a73b40e26303b5ebe70baa5e8ee04 /tools/linguist
parent930d91394d166139a6ed46aaf82dcb9255013073 (diff)
downloadQt-388e97292a6b33948a2a8750e1b7813caee324eb.zip
Qt-388e97292a6b33948a2a8750e1b7813caee324eb.tar.gz
Qt-388e97292a6b33948a2a8750e1b7813caee324eb.tar.bz2
purge dead code
Diffstat (limited to 'tools/linguist')
-rw-r--r--tools/linguist/shared/qph.cpp22
1 files changed, 4 insertions, 18 deletions
diff --git a/tools/linguist/shared/qph.cpp b/tools/linguist/shared/qph.cpp
index 799bf7d..77e74ef 100644
--- a/tools/linguist/shared/qph.cpp
+++ b/tools/linguist/shared/qph.cpp
@@ -54,33 +54,19 @@ QT_BEGIN_NAMESPACE
class QPHReader : public QXmlStreamReader
{
public:
- QPHReader(QIODevice &dev, ConversionData &cd)
- : QXmlStreamReader(&dev), m_cd(cd)
+ QPHReader(QIODevice &dev)
+ : QXmlStreamReader(&dev)
{}
// the "real thing"
bool read(Translator &translator);
private:
- bool elementStarts(const QString &str) const
- {
- return isStartElement() && name() == str;
- }
-
bool isWhiteSpace() const
{
return isCharacters() && text().toString().trimmed().isEmpty();
}
- // needed to expand <byte ... />
- QString readContents();
- // needed to join <lengthvariant>s
- QString readTransContents();
-
- void handleError();
-
- ConversionData &m_cd;
-
enum DataField { NoField, SourceField, TargetField, DefinitionField };
DataField m_currentField;
QString m_currentSource;
@@ -126,10 +112,10 @@ bool QPHReader::read(Translator &translator)
return true;
}
-static bool loadQPH(Translator &translator, QIODevice &dev, ConversionData &cd)
+static bool loadQPH(Translator &translator, QIODevice &dev, ConversionData &)
{
translator.setLocationsType(Translator::NoLocations);
- QPHReader reader(dev, cd);
+ QPHReader reader(dev);
return reader.read(translator);
}