Skip to content

Commit

Permalink
Removed extraneous debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte Schütze committed Mar 24, 2015
1 parent 230e9bf commit d4d7732
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
14 changes: 0 additions & 14 deletions rtmp/src/main/java/net/boreeas/riotapi/rtmp/RtmpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ private void onInvoke(Command cmd) {
Object params = method.getParams().length == 1 ? method.getParams()[0] : method.getParams();

int invokeId = cmd.getInvokeId();
System.out.println("Invoke " + invokeId + " returned");
InvokeCallback callback = getInvokeCallback(invokeId);

Object result = params;
Expand Down Expand Up @@ -474,7 +473,6 @@ public Session authenticate(String user, String password, IngameCredentials ignC
credentials.setDomain("lolclient.lol.riotgames.com");
credentials.setOperatingSystem("Windows 8");

System.out.println("AuthenticationCredentials:\n" + credentials);
log.info("Login service call: " + user + "/***/" + ignCreds+ " on client version " + clientVersion + " (locale " + locale + ")");

this.session = loginService.login(credentials);
Expand Down Expand Up @@ -505,24 +503,14 @@ public Session authenticate(String user, String password, IngameCredentials ignC
0, HEARTBEAT_INTERVAL, TimeUnit.SECONDS
);

System.out.println("Avail queues");
matchmakerService.getAvailableQueues();
System.out.println("Active boosts");
inventoryService.getSummonerActiveBoosts();
System.out.println("Avail champs");
inventoryService.getAvailableChampions();
System.out.println("Rune inv");
summonerRuneService.getSummonerRuneInventory(loginDataPacket.getAllSummonerData().getSummoner().getSumId());
System.out.println("League pos");
leaguesServiceProxy.getMyLeaguePositions();
System.out.println("Load pref");
playerPreferencesService.loadPreferencesByKey("KEY_BINDINGS", Double.NaN, false);
System.out.println("Mastery book");
bookService.getMasteryBook(loginDataPacket.getAllSummonerData().getSummoner().getSumId());
System.out.println("Lobby status " + sendRpcAndWait(LcdsGameInvitationService.SERVICE, "checkLobbyStatus"));
System.out.println("Pending invitations");
lcdsGameInvitationService.getPendingInvitations();
System.out.println("Create player");
summonerTeamService.createPlayer(); // Apparently necessary for some calls to return


Expand Down Expand Up @@ -640,8 +628,6 @@ public InvokeCallback sendRpcWithEndpoint(String endpoint, String service, Strin
RemotingMessage message = createRemotingMessage(endpoint, service, method, args);
Invoke invoke = createAmf3InvokeSkeleton(null, message);
InvokeCallback callback = getInvokeCallback(invoke.getInvokeId());
System.out.println("CALL " + endpoint + "::" + service + "." + method + " " + Arrays.toString(args) + "\n\t-> id=" + invoke.getInvokeId());


send(invoke);
return callback;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@
import lombok.SneakyThrows;
import lombok.extern.log4j.Log4j;
import net.boreeas.riotapi.Shard;
import net.boreeas.riotapi.com.riotgames.platform.game.Game;
import net.boreeas.riotapi.com.riotgames.platform.game.GameMode;
import net.boreeas.riotapi.com.riotgames.platform.game.PracticeGameConfig;
import net.boreeas.riotapi.com.riotgames.platform.game.QueueType;
import net.boreeas.riotapi.com.riotgames.platform.game.map.GameMap;
import net.boreeas.riotapi.com.riotgames.platform.login.impl.ClientVersionMismatchException;
import net.boreeas.riotapi.com.riotgames.platform.matchmaking.GameQueueConfig;
import net.boreeas.riotapi.com.riotgames.platform.matchmaking.MatchMakerParams;
Expand All @@ -41,7 +38,6 @@
import java.io.InputStreamReader;
import java.util.List;
import java.util.Properties;
import java.util.UUID;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
Expand Down Expand Up @@ -265,6 +261,7 @@ public void testIsTagValidAndAvailable() {
}


/*
public void testStartCustomGame() throws Exception {
PracticeGameConfig config = new PracticeGameConfig();
config.setAllowSpectators("ALL");
Expand All @@ -281,7 +278,7 @@ public void testStartCustomGame() throws Exception {
client.gameService.startChampionSelect(practiceGame.getId(), 2);
}

*/
/*
CountDownLatch latch = new CountDownLatch(1);
public void testAcceptExternGameInvite() throws InterruptedException {
Expand Down
2 changes: 0 additions & 2 deletions xmpp/src/main/java/net/boreeas/xmpp/XmppClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ public String sha1(String input) throws NoSuchAlgorithmException {
MessageDigest mDigest = MessageDigest.getInstance("SHA1");
byte[] result = mDigest.digest(input.getBytes("UTF-8"));
String resultString = String.format("%040x", new BigInteger(1, result));
System.out.println("Result: " + resultString);
System.out.println("Alt : " + new BigInteger(1, result).toString(16));
return resultString;
}

Expand Down

0 comments on commit d4d7732

Please sign in to comment.