don't mix functionality

Not a bug fix, just trying to keep things more clean.
This commit is contained in:
titiger
2015-01-01 17:16:24 +01:00
parent 51c67cc7ff
commit 4a292ed1d1
3 changed files with 8 additions and 8 deletions

View File

@@ -787,7 +787,7 @@ int round(float f){
}
// ==================== misc ====================
int compareMajorMinorVersion(string versionA,string versionB, bool checkForNewVersionUpdates) {
int compareMajorMinorVersion(string versionA,string versionB) {
int majorA = getMajor(versionA);
int minorA = getMinor(versionA);
int majorB = getMajor(versionB);
@@ -801,11 +801,6 @@ int compareMajorMinorVersion(string versionA,string versionB, bool checkForNewVe
return -1;
}
else if(minorA == minorB) {
if(checkForNewVersionUpdates) {
if(versionA != versionB) {
return -1;
}
}
return 0;
}
else {