Remove annoying comments

This commit is contained in:
gomeow
2013-04-13 20:40:29 -07:00
parent da4c80c58b
commit 4f8b8539e7
@@ -48,39 +48,26 @@ public class Updater extends Main {
try {
isr = new InputStreamReader(url.openStream());
} catch(UnknownHostException e) {
return false; // Cannot connect
return false;
}
BufferedReader in = new BufferedReader(isr);
String line;
int lineNum = 0;
while ((line = in.readLine()) != null) {
if(line.length() != line.replace("<title>", "").length()) {
line = line.replaceAll("<title>", "").replaceAll("</title>", "").replaceAll(" ", "").substring(1); // Substring
// 1
// for
// me,
// takes
// off
// the
// beginning
// v
// on
// my
// file
// name
// "v1.3.2"
line = line.replaceAll("<title>", "").replaceAll("</title>", "").replaceAll(" ", "").substring(1);
if(lineNum == 1) {
this.newVersion = line;
Integer newVer = Integer.parseInt(line.replace(".", ""));
Integer oldVer = Integer.parseInt(version.replace(".", ""));
if(oldVer < newVer) {
return true; // They are using an old version
return true;
}
else if(oldVer > newVer) {
return false; // They are using a FUTURE version!
return false;
}
else {
return false; // They are up to date!
return false;
}
}
lineNum = lineNum + 1;