Skip to content

Commit

Permalink
Remove unused method and add some missing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Sep 23, 2023
1 parent 5d5004b commit e12ea3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/main/java/de/blau/android/Map.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import de.blau.android.prefs.AdvancedPrefDatabase;
import de.blau.android.prefs.Preferences;
import de.blau.android.resources.DataStyle;
import de.blau.android.resources.DataStyle.FeatureStyle;
import de.blau.android.resources.TileLayerSource;
import de.blau.android.resources.TileLayerSource.TileType;
import de.blau.android.services.TrackerService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,6 @@ private ImageryAlignmentActionModeCallback(@NonNull Main main, @Nullable Mode ol
setOffset(map.getZoomLevel(), 0, 0);
}

/**
* Get the tilelayer we are currently adjusting
*
* @return a TileLayerSource
*/
@NonNull
public TileLayerSource getLayerSource() {
return osmts;
}

/**
* Deep copy an Offset array
*
Expand Down Expand Up @@ -793,7 +783,8 @@ private void displayError(@Nullable String error) {
* @return a Dialog
*/
@SuppressLint("InflateParams")
private AppCompatDialog createSaveOffsetDialog(final int index, final List<ImageryOffset> saveOffsetList) {
@NonNull
private AppCompatDialog createSaveOffsetDialog(final int index, @NonNull final List<ImageryOffset> saveOffsetList) {
final LayoutInflater inflater = ThemeUtils.getLayoutInflater(main);
Builder dialog = new AlertDialog.Builder(main);
dialog.setTitle(R.string.imagery_offset_title);
Expand Down Expand Up @@ -837,8 +828,9 @@ private AppCompatDialog createSaveOffsetDialog(final int index, final List<Image
* @param saveOffsetList list of offsets to save
* @return the OnClickListnener
*/
private OnClickListener createSaveButtonListener(final EditText description, final EditText author, final int index,
final List<ImageryOffset> saveOffsetList) {
@NonNull
private OnClickListener createSaveButtonListener(@NonNull final EditText description, @NonNull final EditText author, final int index,
@NonNull final List<ImageryOffset> saveOffsetList) {
return (dialog, which) -> {
String error = null;
ImageryOffset offset = saveOffsetList.get(index);
Expand Down

0 comments on commit e12ea3a

Please sign in to comment.