Remove unused (and worse) copyFrom method
This commit is contained in:
parent
2535c1c468
commit
a27796b7d2
@ -404,28 +404,6 @@ public class SimulationOptions implements ChangeSource, Cloneable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void copyFrom(SimulationOptions src) {
|
||||
|
||||
this.launchAltitude = src.launchAltitude;
|
||||
this.launchLatitude = src.launchLatitude;
|
||||
this.launchLongitude = src.launchLongitude;
|
||||
this.launchPressure = src.launchPressure;
|
||||
this.launchRodAngle = src.launchRodAngle;
|
||||
this.launchRodDirection = src.launchRodDirection;
|
||||
this.launchRodLength = src.launchRodLength;
|
||||
this.launchTemperature = src.launchTemperature;
|
||||
this.maximumAngle = src.maximumAngle;
|
||||
this.timeStep = src.timeStep;
|
||||
this.windAverage = src.windAverage;
|
||||
this.windTurbulence = src.windTurbulence;
|
||||
this.windDirection = src.windDirection;
|
||||
this.calculateExtras = src.calculateExtras;
|
||||
this.randomSeed = src.randomSeed;
|
||||
|
||||
fireChangeEvent();
|
||||
}
|
||||
|
||||
public void copyConditionsFrom(SimulationOptions src) {
|
||||
// Be a little smart about triggering the change event.
|
||||
// only do it if one of the "important" (user specified) parameters has really changed.
|
||||
@ -550,6 +528,10 @@ public class SimulationOptions implements ChangeSource, Cloneable {
|
||||
public void removeChangeListener(StateChangeListener listener) {
|
||||
listeners.remove(listener);
|
||||
}
|
||||
|
||||
public List<EventListener> getChangeListeners() {
|
||||
return listeners;
|
||||
}
|
||||
|
||||
private final EventObject event = new EventObject(this);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user