aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/classes/share/javax/media/j3d/BoundingBox.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/classes/share/javax/media/j3d/BoundingBox.java b/src/classes/share/javax/media/j3d/BoundingBox.java
index 817b831..6a41dbd 100644
--- a/src/classes/share/javax/media/j3d/BoundingBox.java
+++ b/src/classes/share/javax/media/j3d/BoundingBox.java
@@ -62,7 +62,6 @@ final Point3d upper;
// reusable temp objects
private BoundingSphere tmpSphere = null;
private BoundingPolytope tmpPolytope = null;
- private Point3d tmpP3d = null;
// Issue 561: Set by -Dj3d.releaseBoundingBoxMemory property.
// When set to true, the per-instance fields used in bounding box
@@ -699,9 +698,7 @@ public void setUpper(Point3d p1) {
if (boundsIsInfinite)
return;
- if (tmpP3d == null) {
- tmpP3d = new Point3d();
- }
+ Point3d tmpP3d = new Point3d();
double ux, uy, uz, lx, ly, lz;
ux = upper.x; uy = upper.y; uz = upper.z;
@@ -779,11 +776,6 @@ public void setUpper(Point3d p1) {
if ( tmpP3d.y < lower.y ) lower.y = tmpP3d.y;
if ( tmpP3d.z < lower.z ) lower.z = tmpP3d.z;
- if (releaseBoundingBoxMemory) {
- // Free memory
- tmpP3d = null;
- }
-
}
/**