This commit is contained in:
Dennis Guse
2026-02-12 21:20:08 +01:00
committed by Dennis Guse
parent 24f052491b
commit d12423522e
2 changed files with 1 additions and 6 deletions
@@ -17,10 +17,6 @@ public record Position(
@Nullable Float bearing, @Nullable Float bearing,
@Nullable Speed speed @Nullable Speed speed
) { ) {
@Deprecated
public static Position empty() {
return of(null);
}
public static Position of(@NonNull Instant time) { public static Position of(@NonNull Instant time) {
return new Position( return new Position(
@@ -20,8 +20,7 @@ public class AggregatorGPS extends Aggregator<Location, Position> {
/* /*
* GPS data is not an aggregated value, but for now we want to ensure to only save the data once. * GPS data is not an aggregated value, but for now we want to ensure to only save the data once.
* The data is too large to save it more often than needed (i.e., duplicated values). * The data is too large to save it more often than needed (i.e., duplicated values).
* TODO: this behavior can be changed if TrackRecordingManager.insertTrackPoint() would strip GPS data if it was already saved. This would simplify TrackPointCreator.createCurrentTrackPoint()
*/ */
output = null; resetOutdated();
} }
} }