Skip to content

Commit 8e7f408

Browse files
committed
Delete unused code
1 parent 6fbcf51 commit 8e7f408

File tree

6 files changed

+0
-42
lines changed

6 files changed

+0
-42
lines changed

src/main/java/com/maxmind/db/BufferHolder.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import java.nio.ByteBuffer;
99
import java.nio.channels.FileChannel;
1010
import java.util.ArrayList;
11-
import java.util.List;
1211

1312
final class BufferHolder {
1413
// DO NOT PASS OUTSIDE THIS CLASS. Doing so will remove thread safety.
@@ -75,17 +74,6 @@ final class BufferHolder {
7574
}
7675
}
7776

78-
/**
79-
* Construct a ThreadBuffer from the provided URL.
80-
*
81-
* @param stream the source of my bytes.
82-
* @throws IOException if unable to read from your source.
83-
* @throws NullPointerException if you provide a NULL InputStream
84-
*/
85-
BufferHolder(InputStream stream) throws IOException {
86-
this(stream, MultiBuffer.DEFAULT_CHUNK_SIZE);
87-
}
88-
8977
BufferHolder(InputStream stream, int chunkSize) throws IOException {
9078
if (null == stream) {
9179
throw new NullPointerException("Unable to use a NULL InputStream");

src/main/java/com/maxmind/db/ClosedDatabaseException.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* Signals that the underlying database has been closed.
77
*/
88
public class ClosedDatabaseException extends IOException {
9-
10-
private static final long serialVersionUID = 1L;
11-
129
ClosedDatabaseException() {
1310
super("The MaxMind DB has been closed.");
1411
}

src/main/java/com/maxmind/db/Decoder.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import java.lang.reflect.InvocationTargetException;
77
import java.lang.reflect.ParameterizedType;
88
import java.math.BigInteger;
9-
import java.nio.ByteBuffer;
109
import java.nio.charset.CharacterCodingException;
1110
import java.nio.charset.Charset;
1211
import java.nio.charset.CharsetDecoder;

src/main/java/com/maxmind/db/MultiBuffer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import java.nio.channels.FileChannel;
77
import java.nio.charset.CharacterCodingException;
88
import java.nio.charset.CharsetDecoder;
9-
import java.nio.charset.CoderResult;
109

1110
/**
1211
* A {@link Buffer} implementation backed by multiple {@link ByteBuffer}s,

src/main/java/com/maxmind/db/Networks.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.io.IOException;
44
import java.net.Inet4Address;
55
import java.net.InetAddress;
6-
import java.nio.ByteBuffer;
76
import java.util.Arrays;
87
import java.util.Iterator;
98
import java.util.Stack;
@@ -22,19 +21,6 @@ public final class Networks<T> implements Iterator<DatabaseRecord<T>> {
2221
private final Buffer buffer; /* Stores the buffer for Next() calls */
2322
private final Class<T> typeParameterClass;
2423

25-
/**
26-
* Constructs a Networks instance.
27-
*
28-
* @param reader The reader object.
29-
* @param includeAliasedNetworks The boolean to include aliased networks.
30-
* @param typeParameterClass The type of data returned by the iterator.
31-
* @throws ClosedDatabaseException Exception for a closed database.
32-
*/
33-
Networks(Reader reader, boolean includeAliasedNetworks, Class<T> typeParameterClass)
34-
throws ClosedDatabaseException {
35-
this(reader, includeAliasedNetworks, new NetworkNode[0], typeParameterClass);
36-
}
37-
3824
/**
3925
* Constructs a Networks instance.
4026
*
@@ -60,16 +46,6 @@ public final class Networks<T> implements Iterator<DatabaseRecord<T>> {
6046
}
6147
}
6248

63-
/**
64-
* Constructs a Networks instance with includeAliasedNetworks set to false by default.
65-
*
66-
* @param reader The reader object.
67-
* @param typeParameterClass The type of data returned by the iterator.
68-
*/
69-
Networks(Reader reader, Class<T> typeParameterClass) throws ClosedDatabaseException {
70-
this(reader, false, typeParameterClass);
71-
}
72-
7349
/**
7450
* Returns the next DataRecord.
7551
*

src/main/java/com/maxmind/db/Reader.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import java.net.Inet6Address;
88
import java.net.InetAddress;
99
import java.net.UnknownHostException;
10-
import java.nio.ByteBuffer;
1110
import java.util.concurrent.ConcurrentHashMap;
1211
import java.util.concurrent.atomic.AtomicReference;
1312

0 commit comments

Comments
 (0)