Removed println messages

main
Fan-Wu Yang 8 years ago
parent 30087ed9bd
commit fec421da00

@ -170,7 +170,6 @@ public class RaceXMLCreator {
XMLCompoundMark cm = race.getCourse().getCompoundMark().get(index); XMLCompoundMark cm = race.getCourse().getCompoundMark().get(index);
XMLMark mark = cm.getMark().get(0); XMLMark mark = cm.getMark().get(0);
if (prevMark != null){ if (prevMark != null){
System.out.println(getDistance(mark, prevMark));
totalDistance += getDistance(mark, prevMark); totalDistance += getDistance(mark, prevMark);
} }
prevMark = mark; prevMark = mark;

@ -23,8 +23,6 @@ public class HttpMatchBrowserClient extends Thread {
while(!Thread.interrupted()) { while(!Thread.interrupted()) {
try { try {
JSONArray cons = JsonReader.readJsonFromUrlArray("http://api.umbrasheep.com/seng/get_matches/"); JSONArray cons = JsonReader.readJsonFromUrlArray("http://api.umbrasheep.com/seng/get_matches/");
System.out.println("Got stuff");
System.out.println(cons.toString());
for (int i = 0; i < cons.length(); i++) { for (int i = 0; i < cons.length(); i++) {
JSONObject con = (JSONObject) cons.get(i); JSONObject con = (JSONObject) cons.get(i);
connections.add(new RaceConnection((String) con.get("ip_address"), con.getInt("port"), "Boat Game")); connections.add(new RaceConnection((String) con.get("ip_address"), con.getInt("port"), "Boat Game"));

@ -41,7 +41,6 @@ public class HttpMatchBrowserHost extends Thread {
params.add(new BasicNameValuePair("magic", "Thomas and Seng")); params.add(new BasicNameValuePair("magic", "Thomas and Seng"));
sendHttp("http://api.umbrasheep.com/seng/registermatch/"); sendHttp("http://api.umbrasheep.com/seng/registermatch/");
System.out.println("Register Match");
} }
/** /**
@ -77,7 +76,6 @@ public class HttpMatchBrowserHost extends Thread {
while(!Thread.interrupted()){ while(!Thread.interrupted()){
try { try {
sendHttp("http://api.umbrasheep.com/seng/keep_match_alive/"); sendHttp("http://api.umbrasheep.com/seng/keep_match_alive/");
System.out.println("Keep match ALive");
Thread.sleep(2000); Thread.sleep(2000);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();

Loading…
Cancel
Save