aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-07-05 21:19:40 -0700
committerHarvey Harrison <[email protected]>2012-07-05 21:19:40 -0700
commit5b15ab5052778601d97a31eb4385ca542c859906 (patch)
treedca40a777e797a277ebb972b014fc51d867dbf07 /src
parent9125e9e155263b26b5a698ae43ce150f72a27bc9 (diff)
j3dcore: remove some impossioble to hit code, iPnt cannot be null here
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/classes/share/javax/media/j3d/GeometryArrayRetained.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/classes/share/javax/media/j3d/GeometryArrayRetained.java b/src/classes/share/javax/media/j3d/GeometryArrayRetained.java
index 68bd9a6..5d319b5 100644
--- a/src/classes/share/javax/media/j3d/GeometryArrayRetained.java
+++ b/src/classes/share/javax/media/j3d/GeometryArrayRetained.java
@@ -8334,7 +8334,7 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
Point3d origin = new Point3d();
Point3d end = new Point3d();
Vector3d direction = new Vector3d();
- Point3d iPnt = new Point3d();
+ Point3d iPnt = new Point3d();
Vector3d originToIpnt = new Vector3d();
// Get cone information
@@ -8344,10 +8344,6 @@ ArrayList<ArrayList<MorphRetained>> morphUserLists = null;
double distance;
double sqDist;
- if (iPnt == null) {
- iPnt = new Point3d();
- }
-
if (cone instanceof PickConeSegment) {
((PickConeSegment)cone).getEnd (end);
sqDist = Distance.pointToSegment (pt, origin, end, iPnt, null);