forked from upstream-mirrors/OpenTracks
Cleanup: SegmentStatisticUpdater and Track do not need equal().
This commit is contained in:
@@ -26,7 +26,6 @@ import androidx.annotation.VisibleForTesting;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
import java.time.ZoneOffset;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
import de.dennisguse.opentracks.stats.SegmentStatisticUpdater;
|
||||
@@ -169,22 +168,6 @@ public class Track {
|
||||
'}';
|
||||
}
|
||||
|
||||
@Deprecated //TODO Remove: should not be used.
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
Track track = (Track) o;
|
||||
return id.equals(track.id);
|
||||
}
|
||||
|
||||
@Deprecated //TODO Remove: should not be used.
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id);
|
||||
}
|
||||
|
||||
|
||||
public record Id(long id) implements Parcelable {
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user