Remove assert that is not needed anymore
This commit is contained in:
parent
4ea103d38b
commit
e5423c0224
1 changed files with 0 additions and 1 deletions
|
@ -30,7 +30,6 @@ public class PastLocationsStore {
|
||||||
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
final Set<String> pastLocations = prefs.getStringSet(KEY_PAST_LOCATIONS, new HashSet<String>());
|
final Set<String> pastLocations = prefs.getStringSet(KEY_PAST_LOCATIONS, new HashSet<String>());
|
||||||
|
|
||||||
assert pastLocations != null;
|
|
||||||
if (pastLocations.size() >= MAX_ELEMENTS) {
|
if (pastLocations.size() >= MAX_ELEMENTS) {
|
||||||
deleteOneElementFromSet(pastLocations);
|
deleteOneElementFromSet(pastLocations);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue