Skip to content

Commit 79231cc

Browse files
committed
update code
1 parent 802203e commit 79231cc

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

IP.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ public static void main(String[] args){
3030
public static void load(String filename) {
3131
ipFile = new File(filename);
3232
load();
33-
if (enableFileWatch)
34-
{
33+
if (enableFileWatch) {
3534
watch();
3635
}
3736
}

IPExt.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ public void run() {
8080
private static void load() {
8181
lock.lock();
8282
lastModifyTime = ipFile.lastModified();
83-
if (dataBuffer != null && dataBuffer.position() > 0) {
84-
dataBuffer.clear();
85-
indexBuffer.clear();
86-
}
87-
8883
dataBuffer = ByteBuffer.wrap(getBytesByFile(ipFile));
8984
dataBuffer.position(0);
9085
offset = dataBuffer.getInt(); // indexLength

0 commit comments

Comments
 (0)