Skip to content

Commit 4006a94

Browse files
committed
refactor: remove unused value
I went back to initial commit (96078b5) and this was never used
1 parent 1751986 commit 4006a94

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/runejs/client/cache/CacheArchive.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public class CacheArchive {
2929
public static CacheArchive huffmanCacheArchive;
3030
public static CacheArchive jingleCacheArchive;
3131
public static CacheArchive clientScriptCacheArchive;
32-
public static int anInt1195 = 0;
3332

3433
public byte[][] aByteArrayArray212;
3534
public int crc8;
@@ -78,13 +77,13 @@ public static byte[] decompress(byte[] cacheData) {
7877
int type = buffer.getUnsignedByte();
7978
int length = buffer.getIntBE();
8079

81-
if(length < 0 || anInt1195 != 0 && anInt1195 < length) {
80+
if(length < 0) {
8281
throw new RuntimeException();
8382
}
8483

8584
if(type != 0) {
8685
int decompressedLength = buffer.getIntBE();
87-
if(decompressedLength < 0 || anInt1195 != 0 && decompressedLength > anInt1195) {
86+
if(decompressedLength < 0) {
8887
return new byte[100];
8988
//throw new RuntimeException();
9089
}

0 commit comments

Comments
 (0)