mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-26 17:53:57 +02:00
utils: remove dead code
Change-Id: Ifa610f3a110c050e22b6a83c79c0a94644ee82e1
This commit is contained in:
parent
cab0ccc792
commit
b3dcabb9ea
2 changed files with 0 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue