Commit b3dcabb9 authored by Sébastien Blin's avatar Sébastien Blin Committed by Aline Gondim Santos
Browse files

utils: remove dead code

Change-Id: Ifa610f3a110c050e22b6a83c79c0a94644ee82e1
parent cab0ccc7
......@@ -765,28 +765,6 @@ Utils::setupQRCode(QString ringID, int margin)
return result;
}
QString
Utils::formattedTime(int duration)
{
if (duration == 0)
return {};
std::string formattedString;
auto minutes = duration / 60;
auto seconds = duration % 60;
if (minutes > 0) {
formattedString += std::to_string(minutes) + ":";
if (formattedString.length() == 2) {
formattedString = "0" + formattedString;
}
} else {
formattedString += "00:";
}
if (seconds < 10)
formattedString += "0";
formattedString += std::to_string(seconds);
return QString::fromStdString(formattedString);
}
QByteArray
Utils::QByteArrayFromFile(const QString& filename)
{
......
......@@ -116,7 +116,6 @@ bool isImage(const QString& fileExt);
QString generateUid();
// Misc
QString formattedTime(int seconds);
QString humanFileSize(qint64 fileSize);
} // namespace Utils
Supports Markdown
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