From 46e560bd94bf3e86a524bd1a7d511ebc2549ce5f Mon Sep 17 00:00:00 2001 From: Me Car Date: Wed, 20 Jan 2016 14:39:11 +0900 Subject: [PATCH] Removed unuseful proto fields. Added a better pom.xml documentation. Removed an unuseful logging. --- .../src/main/java/mage/server/record/TableRecorderImpl.java | 1 - Mage/pom.xml | 6 +++--- .../main/java/mage/game/tournament/TournamentPlayer.java | 2 -- Mage/src/main/proto/result.proto | 4 +--- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Mage.Server/src/main/java/mage/server/record/TableRecorderImpl.java b/Mage.Server/src/main/java/mage/server/record/TableRecorderImpl.java index 0b5017b8f6..b4d16688ed 100644 --- a/Mage.Server/src/main/java/mage/server/record/TableRecorderImpl.java +++ b/Mage.Server/src/main/java/mage/server/record/TableRecorderImpl.java @@ -16,7 +16,6 @@ public class TableRecorderImpl implements TableRecorder { public void record(Table table) { TableProto proto = table.toProto(); - logger.info("Adding record:\n" + proto.toString()); TableRecordRepository.instance.add(new TableRecord(proto, proto.getEndTimeMs())); } } diff --git a/Mage/pom.xml b/Mage/pom.xml index 4b163a6e8f..d81c9655d9 100644 --- a/Mage/pom.xml +++ b/Mage/pom.xml @@ -56,7 +56,7 @@ - + org.apache.maven.plugins @@ -167,7 +167,7 @@ mage - + @@ -178,7 +178,7 @@ - + ${project.basedir}/src/main/proto diff --git a/Mage/src/main/java/mage/game/tournament/TournamentPlayer.java b/Mage/src/main/java/mage/game/tournament/TournamentPlayer.java index e8a7a24deb..5b4042155a 100644 --- a/Mage/src/main/java/mage/game/tournament/TournamentPlayer.java +++ b/Mage/src/main/java/mage/game/tournament/TournamentPlayer.java @@ -233,8 +233,6 @@ public class TournamentPlayer { return TourneyPlayerProto.newBuilder() .setName(this.player.getName()) .setPlayerType(this.playerType) - .setStateInfo(this.stateInfo) - .setDisconnectInfo(this.disconnectInfo) .setQuit(this.quitStatus) .build(); } diff --git a/Mage/src/main/proto/result.proto b/Mage/src/main/proto/result.proto index def7b8c52d..b24d4714f5 100644 --- a/Mage/src/main/proto/result.proto +++ b/Mage/src/main/proto/result.proto @@ -46,9 +46,7 @@ message TourneyPlayerProto { optional string name = 1; optional string player_type = 2; optional string replaced_player_name = 3; - optional string state_info = 4; - optional string disconnect_info = 5; - optional TourneyQuitStatus quit = 6; + optional TourneyQuitStatus quit = 4; } enum TourneyQuitStatus {