summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Knauß <[email protected]>2016-03-31 14:54:17 +0200
committerSandro Knauß <[email protected]>2016-03-31 14:54:17 +0200
commit9d046e22b77e974cb73864c9b83a6ec9dbcb4b8d (patch)
tree34b1470c7e5d40441972ba5ae1878e2f4b797a12
parentb6e09bc61df99d4db769da4cc172905c7c901796 (diff)
remove unused method to store parts in files
-rw-r--r--mimetreeparser/src/viewer/objecttreeparser.cpp17
-rw-r--r--mimetreeparser/src/viewer/objecttreeparser.h6
2 files changed, 0 insertions, 23 deletions
diff --git a/mimetreeparser/src/viewer/objecttreeparser.cpp b/mimetreeparser/src/viewer/objecttreeparser.cpp
index 95437d3..b0392d7 100644
--- a/mimetreeparser/src/viewer/objecttreeparser.cpp
+++ b/mimetreeparser/src/viewer/objecttreeparser.cpp
@@ -1234,23 +1234,6 @@ bool ObjectTreeParser::looksLikeParaBreak(const QString &s, unsigned int newLine
return prevLineLength + wordLength + 1 < WRAP_COL;
}
-#ifdef MARCS_DEBUG
-void ObjectTreeParser::dumpToFile(const char *filename, const char *start,
- size_t len)
-{
- assert(filename);
-
- QFile f(QString::fromAscii(filename));
- if (f.open(QIODevice::WriteOnly)) {
- if (start) {
- QDataStream ds(&f);
- ds.writeRawData(start, len);
- }
- f.close(); // If data is 0 we just create a zero length file.
- }
-}
-#endif // !NDEBUG
-
KMime::Content *ObjectTreeParser::findType(KMime::Content *content, const QByteArray &mimeType, bool deep, bool wide)
{
if ((!content->contentType()->isEmpty())
diff --git a/mimetreeparser/src/viewer/objecttreeparser.h b/mimetreeparser/src/viewer/objecttreeparser.h
index 8cfb0fc..db0fdf6 100644
--- a/mimetreeparser/src/viewer/objecttreeparser.h
+++ b/mimetreeparser/src/viewer/objecttreeparser.h
@@ -394,12 +394,6 @@ private:
well-defined) */
bool looksLikeParaBreak(const QString &s, unsigned int newLinePos) const;
-#ifdef MARCS_DEBUG
- void dumpToFile(const char *filename, const char *dataStart, size_t dataLen);
-#else
- void dumpToFile(const char *, const char *, size_t) {}
-#endif
-
void copyContentFrom(const ObjectTreeParser *other);
private: