From efd8a3e15e862a3a5868648beef10780614813fe Mon Sep 17 00:00:00 2001 From: Daniel_M_Williams Date: Mon, 3 Sep 2018 22:52:25 -0400 Subject: [PATCH] [cleanup] removed dead code, and fixed javadocs --- .../rocketcomponent/FreeformFinSet.java | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/FreeformFinSet.java b/core/src/net/sf/openrocket/rocketcomponent/FreeformFinSet.java index 36dfc59ab..32f660346 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/FreeformFinSet.java +++ b/core/src/net/sf/openrocket/rocketcomponent/FreeformFinSet.java @@ -29,26 +29,11 @@ public class FreeformFinSet extends FinSet { this.length = 0.05; } - - + public FreeformFinSet(Coordinate[] finpoints) throws IllegalFinPointException { setPoints(finpoints); } - - /* - public FreeformFinSet(FinSet finset) { - Coordinate[] finpoints = finset.getFinPoints(); - this.copyFrom(finset); - points.clear(); - for (Coordinate c: finpoints) { - points.add(c); - } - this.length = points.get(points.size()-1).x - points.get(0).x; - } - */ - - /** * Convert an existing fin set into a freeform fin set. The specified * fin set is taken out of the rocket tree (if any) and the new component @@ -129,7 +114,7 @@ public class FreeformFinSet extends FinSet { * The point is placed at the midpoint of the current segment. * * @param index the fin point before which to add the new point. - * @param point the target location to create the new point at + * @param location the target location to create the new point at */ public void addPoint(int index, Point2D.Double location) { // new method: add new point at closest point