Remove portable, we dont use it

This commit is contained in:
Jonas Kvinge
2019-11-25 00:35:48 +01:00
parent 7039234471
commit 337e47269f
7 changed files with 3 additions and 47 deletions

View File

@@ -736,19 +736,6 @@ void IncreaseFDLimit() {
}
void CheckPortable() {
QFile f(QApplication::applicationDirPath() + QDir::separator() + "data");
if (f.exists()) {
// We are portable. Set the bool and change the qsettings path
Application::kIsPortable = true;
QSettings::setDefaultFormat(QSettings::IniFormat);
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, f.fileName());
}
}
QString GetRandomStringWithChars(const int len) {
const QString UseCharacters("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
return GetRandomString(len, UseCharacters);