mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2026-01-09 15:33:07 +08:00
utils: remove dead code
Change-Id: Ifa610f3a110c050e22b6a83c79c0a94644ee82e1
This commit is contained in:
committed by
Aline Gondim Santos
parent
cab0ccc792
commit
b3dcabb9ea
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user