Commit 9d046e22 authored by Sandro Knauß's avatar Sandro Knauß

remove unused method to store parts in files

parent b6e09bc6
......@@ -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())
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment