Removed unuseful proto fields. Added a better pom.xml documentation. Removed an unuseful logging.

This commit is contained in:
Me Car 2016-01-20 14:39:11 +09:00
parent 379e61f98a
commit 46e560bd94
4 changed files with 4 additions and 9 deletions

View file

@ -16,7 +16,6 @@ public class TableRecorderImpl implements TableRecorder {
public void record(Table table) { public void record(Table table) {
TableProto proto = table.toProto(); TableProto proto = table.toProto();
logger.info("Adding record:\n" + proto.toString());
TableRecordRepository.instance.add(new TableRecord(proto, proto.getEndTimeMs())); TableRecordRepository.instance.add(new TableRecord(proto, proto.getEndTimeMs()));
} }
} }

View file

@ -56,7 +56,7 @@
</configuration> </configuration>
</plugin> </plugin>
<!-- http://vlkan.com/blog/post/2015/11/27/maven-protobuf/ --> <!-- The plugins below are added by following http://vlkan.com/blog/post/2015/11/27/maven-protobuf/ -->
<!-- copy protoc binary into build directory --> <!-- copy protoc binary into build directory -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -167,7 +167,7 @@
<finalName>mage</finalName> <finalName>mage</finalName>
<!-- http://vlkan.com/blog/post/2015/11/27/maven-protobuf/ --> <!-- The extension below is added added by following http://vlkan.com/blog/post/2015/11/27/maven-protobuf/ -->
<extensions> <extensions>
<!-- provides os.detected.classifier (i.e. linux-x86_64, osx-x86_64) property --> <!-- provides os.detected.classifier (i.e. linux-x86_64, osx-x86_64) property -->
<extension> <extension>
@ -178,7 +178,7 @@
</extensions> </extensions>
</build> </build>
<!-- http://vlkan.com/blog/post/2015/11/27/maven-protobuf/ --> <!-- The properties below are added added by following http://vlkan.com/blog/post/2015/11/27/maven-protobuf/ -->
<properties> <properties>
<!-- protobuf paths --> <!-- protobuf paths -->
<protobuf.input.directory>${project.basedir}/src/main/proto</protobuf.input.directory> <protobuf.input.directory>${project.basedir}/src/main/proto</protobuf.input.directory>

View file

@ -233,8 +233,6 @@ public class TournamentPlayer {
return TourneyPlayerProto.newBuilder() return TourneyPlayerProto.newBuilder()
.setName(this.player.getName()) .setName(this.player.getName())
.setPlayerType(this.playerType) .setPlayerType(this.playerType)
.setStateInfo(this.stateInfo)
.setDisconnectInfo(this.disconnectInfo)
.setQuit(this.quitStatus) .setQuit(this.quitStatus)
.build(); .build();
} }

View file

@ -46,9 +46,7 @@ message TourneyPlayerProto {
optional string name = 1; optional string name = 1;
optional string player_type = 2; optional string player_type = 2;
optional string replaced_player_name = 3; optional string replaced_player_name = 3;
optional string state_info = 4; optional TourneyQuitStatus quit = 4;
optional string disconnect_info = 5;
optional TourneyQuitStatus quit = 6;
} }
enum TourneyQuitStatus { enum TourneyQuitStatus {