Skip to content

Commit ed0d419

Browse files
committedFeb 18, 2018
Remove unused code and comments
1 parent 08635c3 commit ed0d419

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
 

‎src/main/java/br/com/pinter/tqrespec/Version.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public int checkNewerVersion(String urlPropFile) {
7373
try {
7474
url = new URL(urlPropFile);
7575
InputStream in = url.openStream();
76-
reader = new InputStreamReader(in, "UTF-8"); // for example
76+
reader = new InputStreamReader(in, "UTF-8");
7777
Properties prop = new Properties();
7878
if (reader != null)
7979
prop.load(reader);

‎src/main/java/br/com/pinter/tqrespec/save/PlayerParser.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private Hashtable<Integer, BlockInfo> parseAllBlocks() {
149149

150150
if (blockInfo.getSize() < 4) continue;
151151

152-
if((blockInfo.getStart() >= inventoryStart && Constants.SKIP_INVENTORY_BLOCKS && inventoryStart > 0 && inventoryStart!=-1)) {
152+
if((blockInfo.getStart() >= inventoryStart && Constants.SKIP_INVENTORY_BLOCKS && inventoryStart > 0)) {
153153
break;
154154
}
155155
Hashtable<String, VariableInfo> variables = parseBlock(blockInfo);
@@ -177,9 +177,6 @@ private Hashtable<String, VariableInfo> parseBlock(BlockInfo blockInfo) {
177177
int keyOffset = getBuffer().position();
178178
String name = readString(getBuffer());
179179
keyread++;
180-
// if (getBuffer().position() >= blockInfo.size) {
181-
// continue;
182-
// }
183180

184181
if (StringUtils.isEmpty(name)) {
185182
continue;

0 commit comments

Comments
 (0)
Please sign in to comment.