From d98e2cb6f8bbf7b80157de7ee4afca5f5fffcf5e Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Tue, 24 Mar 2020 20:01:05 -0700 Subject: [PATCH] Remove unnecessary override of updateFigure in RocketFigure Previously, updateFigure was overridden in RocketFigure in order to ensure that all component shapes were added to the rocket prior to calling the paintComponent method. This is superfluous as the paintComponent method already adds the shapes prior to rendering. Signed-off-by: Billy Olsen --- .../src/net/sf/openrocket/gui/scalefigure/RocketFigure.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/swing/src/net/sf/openrocket/gui/scalefigure/RocketFigure.java b/swing/src/net/sf/openrocket/gui/scalefigure/RocketFigure.java index ffb277118..5775390a1 100644 --- a/swing/src/net/sf/openrocket/gui/scalefigure/RocketFigure.java +++ b/swing/src/net/sf/openrocket/gui/scalefigure/RocketFigure.java @@ -315,12 +315,6 @@ public class RocketFigure extends AbstractScaleFigure { } - @Override - public void updateFigure() { - updateShapes(this.figureShapes); - super.updateFigure(); - } - public RocketComponent[] getComponentsByPoint(double x, double y) { // Calculate point in shapes' coordinates Point2D.Double p = new Point2D.Double(x, y);