diff options
author | Niels Weber <niels.2.weber@nokia.com> | 2012-02-15 12:48:17 +0100 |
---|---|---|
committer | Niels Weber <niels.2.weber@nokia.com> | 2012-02-15 12:58:48 +0100 |
commit | bd4b51196497cb7bca27c70625f4a62675f3b4d3 (patch) | |
tree | e58a8f94f11775c0d86481d8b221409362e1fe79 /installerbuilder/common/binaryformat.cpp | |
parent | 7f417e58129a14b8673349ed627b72bf9f348cb6 (diff) |
remove code that has been ifdefed out since forever
Change-Id: I52ba7e94f12d12af25e55490e01f785f0e07fe96
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Diffstat (limited to 'installerbuilder/common/binaryformat.cpp')
-rw-r--r-- | installerbuilder/common/binaryformat.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/installerbuilder/common/binaryformat.cpp b/installerbuilder/common/binaryformat.cpp index c3eac2bdf..0c210bc15 100644 --- a/installerbuilder/common/binaryformat.cpp +++ b/installerbuilder/common/binaryformat.cpp @@ -106,27 +106,6 @@ Range<qint64> QInstaller::retrieveInt64Range(QIODevice *in) return Range<qint64>::fromStartAndLength(start, length); } - - -#if 0 -// Faster or not? -static void appendFileData(QIODevice *out, const QString &fileName) -{ - QFile file(fileName); - openForRead(file); - qint64 size = file.size(); - QInstaller::appendInt64(out, size); - if (size == 0) - return; - uchar *data = file.map(0, size); - if (!data) - throw Error(QInstaller::tr("Cannot map file %1.").arg(file.fileName())); - blockingWrite(out, (const char *)data, size); - if (!file.unmap(data)) - throw Error(QInstaller::tr("Cannot unmap file %1.").arg(file.fileName())); -} -#endif - void QInstaller::appendData(QIODevice *out, QIODevice *in, qint64 size) { while (size > 0) { |