diff --git a/OsmAnd/src/net/osmand/plus/OsmandSettings.java b/OsmAnd/src/net/osmand/plus/OsmandSettings.java index 93c0eadd8b..9f297d2b77 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandSettings.java +++ b/OsmAnd/src/net/osmand/plus/OsmandSettings.java @@ -2371,12 +2371,6 @@ public class OsmandSettings { edit.commit(); objectToShow = toShow; if (addToHistory) { - if (pointDescription.isFavorite()) { -// int localeNameID = PersonalFavouritePoint.PersonalPoint.getLocalName(pointDescription.getName()); -// if (localeNameID != 0) { -// pointDescription.setName(ctx.getString(localeNameID)); -// } - } SearchHistoryHelper.getInstance(ctx).addNewItemToHistory(latitude, longitude, pointDescription); } } @@ -2583,16 +2577,6 @@ public class OsmandSettings { settingsAPI.getString(globalPreferences, WORK_POINT_DESCRIPTION, ""), getWorkPoint()); } - public void setHomePoint(double latitude, double longitude, PointDescription p) { - settingsAPI.edit(globalPreferences).putFloat(HOME_POINT_LAT, (float) latitude).putFloat(HOME_POINT_LON, (float) longitude).commit(); - settingsAPI.edit(globalPreferences).putString(HOME_POINT_DESCRIPTION, PointDescription.serializeToString(p)).commit(); - } - - public void setWorkPoint(double latitude, double longitude, PointDescription p) { - settingsAPI.edit(globalPreferences).putFloat(WORK_POINT_LAT, (float) latitude).putFloat(WORK_POINT_LON, (float) longitude).commit(); - settingsAPI.edit(globalPreferences).putString(WORK_POINT_DESCRIPTION, PointDescription.serializeToString(p)).commit(); - } - public LatLon getMyLocationToStart() { float lat = settingsAPI.getFloat(globalPreferences, MY_LOC_POINT_LAT, 0); float lon = settingsAPI.getFloat(globalPreferences, MY_LOC_POINT_LON, 0);