Commit 8437dd3a authored by Andre Heinecke's avatar Andre Heinecke

Remove unused formatKeyLink method

parent 158b360d
......@@ -211,26 +211,15 @@ shared_ptr<Task::Result> Task::makeErrorResult(int errCode, const QString &detai
return shared_ptr<Task::Result>(new ErrorResult(errCode, details));
}
static QString makeNonce()
{
// ### make better
return QString::number(qrand(), 16);
}
class Task::Result::Private
{
public:
Private() {}
};
Task::Result::Result() : m_nonce(makeNonce()), d(new Private()) {}
Task::Result::Result() : d(new Private()) {}
Task::Result::~Result() {}
QString Task::Result::formatKeyLink(const char *fpr, const QString &content) const
{
return QLatin1String("<a href=\"key:") + m_nonce + QLatin1Char(':') + QLatin1String(fpr) + QLatin1String("\">") + content + QLatin1String("</a>");
}
bool Task::Result::hasError() const
{
return errorCode() != 0;
......
......@@ -146,7 +146,6 @@ public:
protected:
static QString iconPath(VisualCode code);
QString formatKeyLink(const char *fingerprint, const QString &content) const;
static QString makeOverview(const QString &msg);
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