Marker.Id must now always be valid (if present).

This commit is contained in:
Dennis Guse
2020-12-17 20:06:47 +01:00
parent d1290c8f22
commit f4fe1d8d97
2 changed files with 3 additions and 13 deletions
@@ -27,8 +27,6 @@ import androidx.annotation.VisibleForTesting;
import java.util.Objects;
import de.dennisguse.opentracks.util.PreferencesUtils;
/**
* @author Leif Hendrik Wilden
* @author Rodrigo Damazio
@@ -180,11 +178,6 @@ public final class Marker {
return id;
}
@Deprecated //TODO Use a Id of null instead
public boolean isValid() {
return id != PreferencesUtils.RECORDING_TRACK_ID_DEFAULT;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;