From b442bcd9c117167b3bfb488a9e5486b490b30e7d Mon Sep 17 00:00:00 2001 From: javasabr Date: Sun, 1 Jan 2017 19:33:10 +0300 Subject: [PATCH] removed unnecessary field. --- jme3-core/src/main/java/com/jme3/util/BufferUtils.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/util/BufferUtils.java b/jme3-core/src/main/java/com/jme3/util/BufferUtils.java index 4fd5edb37..6e7473381 100644 --- a/jme3-core/src/main/java/com/jme3/util/BufferUtils.java +++ b/jme3-core/src/main/java/com/jme3/util/BufferUtils.java @@ -70,8 +70,6 @@ public final class BufferUtils { private static ConcurrentHashMap trackedBuffers = new ConcurrentHashMap(); static ClearReferences cleanupthread; - private static boolean used; - /** * Set it to true if you want to enable direct memory tracking for debugging * purpose. Default is false. To print direct memory usage use @@ -108,7 +106,7 @@ public final class BufferUtils { } private static void onBufferAllocated(Buffer buffer) { - used = true; + if (BufferUtils.trackDirectMemory) { if (BufferUtils.cleanupthread == null) { BufferUtils.cleanupthread = new ClearReferences();