From 5b15ab5052778601d97a31eb4385ca542c859906 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Thu, 5 Jul 2012 21:19:40 -0700 Subject: j3dcore: remove some impossioble to hit code, iPnt cannot be null here Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/GeometryArrayRetained.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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> 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> 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); -- cgit v1.2.3