aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/DirectionProvider.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/DirectionProvider.java')
-rw-r--r--main/src/cgeo/geocaching/DirectionProvider.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/main/src/cgeo/geocaching/DirectionProvider.java b/main/src/cgeo/geocaching/DirectionProvider.java
index d8ee782..2f90b74 100644
--- a/main/src/cgeo/geocaching/DirectionProvider.java
+++ b/main/src/cgeo/geocaching/DirectionProvider.java
@@ -70,15 +70,4 @@ public class DirectionProvider extends MemorySubject<Float> implements SensorEve
return Compatibility.getDirectionNow(direction, activity) % 360;
}
- /**
- * Return the angle to turn of to go from an angle to the other
- *
- * @param from the origin angle in degrees, in the [0, 360[ range
- * @param to the target angle in degreees, in the [0, 360[ range
- * @return a value in degrees, in the [-180, 180[ range
- */
- public static double difference(final double from, final double to) {
- return (to - from + 360 + 180) % 360 - 180;
- }
-
}