diff options
Diffstat (limited to 'src/installationmanager.cpp')
| -rw-r--r-- | src/installationmanager.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index 38173d8b..a6d86f36 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -484,30 +484,6 @@ bool InstallationManager::testOverwrite(GuessedValue<QString> &modName) const return true; } -/* -bool InstallationManager::fixModName(QString &name) -{ - QString temp = name.simplified(); - while (temp.endsWith('.')) temp.chop(1); - - temp.replace(QRegExp("[<>:\"/\\|?*]"), ""); - static QString invalidNames[] = { "CON", "PRN", "AUX", "NUL", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", - "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9" }; - for (int i = 0; i < sizeof(invalidNames) / sizeof(QString); ++i) { - if (temp == invalidNames[i]) { - temp = ""; - break; - } - } - - if (temp.length() > 1) { - name = temp; - return true; - } else { - return false; - } -} -*/ bool InstallationManager::ensureValidModName(GuessedValue<QString> &name) const { |
