Commit ee5754c1 authored by Nico Mack's avatar Nico Mack

Removed obsolete code.

parent 97739487
......@@ -80,8 +80,8 @@ public class ValueWidget extends TetherableWidget implements InformationProvider
protected boolean withStopAngles;
/**
* Field holding the current angular position of the constrainted (lowerStopAngle | upperStopAngle)
* angle.
* Field holding the current angular position of the constrainted (lowerStopAngle |
* upperStopAngle) angle.
*/
protected double dialAngle = Double.NaN;
protected double dropAngle = Double.NaN;
......@@ -193,8 +193,8 @@ public class ValueWidget extends TetherableWidget implements InformationProvider
// ---------------------------------------------------------------------------
/**
* iterates over all value coronas assigned to this widget and populates the dispatcher table, using
* variable names as keys and associating depending coronas as values
* iterates over all value coronas assigned to this widget and populates the dispatcher table,
* using variable names as keys and associating depending coronas as values
*/
// ---------------------------------------------------------------------------
......@@ -241,8 +241,6 @@ public class ValueWidget extends TetherableWidget implements InformationProvider
// ---------------------------------------------------------------------------
protected void updateFromRotation(double angle, Direction direction) {
// double value = 0;
if (variable == null) {
return;
}
......@@ -250,7 +248,6 @@ public class ValueWidget extends TetherableWidget implements InformationProvider
if (withStopAngles) {
value = lowerBound + (stepSize * Math.floor((angle - lowerStopAngle) / stepAngle));
} else if (multiTurn) {
// value = variable.getConstrainedValue();
if ((direction != null) && !Double.isNaN(lastAngle)) {
double wrapped = AngleUtils.wrapTwoPi(angle - lastAngle);
double degrees = Math.toDegrees(wrapped);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment