From 3751b9cd8ca0d363978fceb344bc3b66fce326f9 Mon Sep 17 00:00:00 2001 From: SiboVG Date: Sat, 24 Sep 2022 17:55:16 +0200 Subject: [PATCH] Use built-in component ID instead of extra stageID (whoops) --- .../sf/openrocket/rocketcomponent/AxialStage.java | 7 ------- .../rocketcomponent/FlightConfiguration.java | 12 ++++++------ .../net/sf/openrocket/rocketcomponent/Rocket.java | 4 ++-- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/AxialStage.java b/core/src/net/sf/openrocket/rocketcomponent/AxialStage.java index 40725d608..df2285c37 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/AxialStage.java +++ b/core/src/net/sf/openrocket/rocketcomponent/AxialStage.java @@ -13,7 +13,6 @@ public class AxialStage extends ComponentAssembly implements FlightConfigurableC protected FlightConfigurableParameterSet separations; /** number of stages */ protected int stageNumber; - private FlightConfigurationId stageId; /** * default constructor, builds a rocket with zero stages @@ -22,7 +21,6 @@ public class AxialStage extends ComponentAssembly implements FlightConfigurableC this.separations = new FlightConfigurableParameterSet( new StageSeparationConfiguration()); this.axialMethod = AxialMethod.AFTER; this.stageNumber = 0; - this.stageId = new FlightConfigurationId(); } /** @@ -92,13 +90,8 @@ public class AxialStage extends ComponentAssembly implements FlightConfigurableC protected RocketComponent copyWithOriginalID() { AxialStage copy = (AxialStage) super.copyWithOriginalID(); copy.separations = new FlightConfigurableParameterSet(separations); - copy.stageId = new FlightConfigurationId(); return copy; } - - public FlightConfigurationId getStageId() { - return stageId; - } /** * Stages may be positioned relative to other stages. In that case, this will set the stage number diff --git a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java index 757e11a49..b2cf9ce61 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java +++ b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java @@ -47,9 +47,9 @@ public class FlightConfiguration implements FlightConfigurableParameter