summaryrefslogtreecommitdiff
path: root/src/modinforegular.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-05-07 02:07:15 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-05-07 12:16:33 +0200
commit5a90eecc21412fa705837eb724250ef1b758c993 (patch)
tree66afc6d69385d1d3202866168f211f0595c86fd0 /src/modinforegular.cpp
parent068e12bbb2cd774af89715105241ba7d3e3d0dcd (diff)
Fix issue with mods not being checked properly and overwrite not having the right priority.
Diffstat (limited to 'src/modinforegular.cpp')
-rw-r--r--src/modinforegular.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp
index 6a0a1b7d..e74c5070 100644
--- a/src/modinforegular.cpp
+++ b/src/modinforegular.cpp
@@ -1,5 +1,4 @@
#include "modinforegular.h"
-#include "installationtester.h"
#include "categories.h"
#include "messagedialog.h"
@@ -271,34 +270,6 @@ void ModInfoRegular::saveMeta()
}
}
-bool ModInfoRegular::doTestValid() const {
-
- bool valid = false;
- QDirIterator dirIter(absolutePath());
- while (dirIter.hasNext()) {
- dirIter.next();
- if (dirIter.fileInfo().isDir()) {
- if (InstallationTester::isTopLevelDirectory(dirIter.fileName())) {
- valid = true;
- break;
- }
- }
- else {
- if (InstallationTester::isTopLevelSuffix(dirIter.fileName())) {
- valid = true;
- break;
- }
- }
- }
-
- // NOTE: in Qt 4.7 it seems that QDirIterator leaves a file handle open if it is not iterated to the
- // end
- while (dirIter.hasNext()) {
- dirIter.next();
- }
-
- return valid;
-}
bool ModInfoRegular::updateAvailable() const
{