Skip to content
Snippets Groups Projects
Commit a13623d2 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Remove check for context, which isensured since construction.

parent ead9a7c2
No related branches found
No related tags found
No related merge requests found
......@@ -71,9 +71,6 @@ public class Rugged {
/** Reference date. */
private final AbsoluteDate referenceDate;
/** Inertial frame. */
private final Frame inertialFrame;
/** Reference ellipsoid. */
private final ExtendedEllipsoid ellipsoid;
......@@ -239,7 +236,6 @@ public class Rugged {
this.referenceDate = referenceDate;
// space reference
this.inertialFrame = inertialFrame;
this.ellipsoid = ellipsoid;
// orbit/attitude to body converter
......@@ -512,8 +508,6 @@ public class Rugged {
throws RuggedException {
try {
checkContext();
// select the sensor
final Sensor sensor = getSensor(sensorName);
......@@ -586,7 +580,6 @@ public class Rugged {
throws RuggedException {
try {
checkContext();
final Sensor sensor = getSensor(sensorName);
final Vector3D target = ellipsoid.transform(groundPoint);
final UnivariateSolver solver = new BracketingNthOrderBrentSolver(0.0, INVERSE_LOCALIZATION_ACCURACY, 5);
......@@ -734,15 +727,6 @@ public class Rugged {
}
/** Check if context has been initialized.
* @exception RuggedException if context has not been initialized
*/
private void checkContext() throws RuggedException {
if (inertialFrame == null) {
throw new RuggedException(RuggedMessages.UNINITIALIZED_CONTEXT);
}
}
/** Get a sensor.
* @param sensorName sensor name
* @return selected sensor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment