Fix various warnings about unused variables and functions

Change-Id: I430b87ab0afa8bf32115d44e8acb94271988d229
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2021-01-25 18:00:52 +01:00
parent 11d1b8bb4c
commit 7a6aa75032
3 changed files with 14 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ namespace Core {
namespace Internal {
// TODO: move to somewhere in Utils
#ifdef ENABLE_CRASHPAD
static QString formatSize(qint64 size)
{
QStringList units {QObject::tr("Bytes"), QObject::tr("KB"), QObject::tr("MB"),
@@ -72,6 +73,7 @@ static QString formatSize(qint64 size)
return i == 0 ? QString("%0 %1").arg(outputSize).arg(units[i]) // Bytes
: QString("%0 %1").arg(outputSize, 0, 'f', 2).arg(units[i]); // KB, MB, GB, TB
}
#endif // ENABLE_CRASHPAD
class SystemSettingsWidget : public IOptionsPageWidget
{