Skip to content

Commit b442bcd

Browse files
committed
removed unnecessary field.
1 parent b3ecb13 commit b442bcd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

jme3-core/src/main/java/com/jme3/util/BufferUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ public final class BufferUtils {
7070
private static ConcurrentHashMap<BufferInfo, BufferInfo> trackedBuffers = new ConcurrentHashMap<BufferInfo, BufferInfo>();
7171
static ClearReferences cleanupthread;
7272

73-
private static boolean used;
74-
7573
/**
7674
* Set it to true if you want to enable direct memory tracking for debugging
7775
* purpose. Default is false. To print direct memory usage use
@@ -108,7 +106,7 @@ public static Buffer clone(Buffer buf) {
108106
}
109107

110108
private static void onBufferAllocated(Buffer buffer) {
111-
used = true;
109+
112110
if (BufferUtils.trackDirectMemory) {
113111
if (BufferUtils.cleanupthread == null) {
114112
BufferUtils.cleanupthread = new ClearReferences();

0 commit comments

Comments
 (0)