Changeset 18444 in josm for trunk/src/org


Ignore:
Timestamp:
2022-05-10T18:54:08+02:00 (2 years ago)
Author:
taylor.smock
Message:

Fix #21775: Remove deprecated code in ImageData

The code in question has been deprecated since r18246 (2021-10-04).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/ImageData.java

    r18421 r18444  
    145145
    146146    /**
    147      * Select the first image of the sequence
    148      * @deprecated Use {@link #getFirstImage()} in conjunction with {@link #setSelectedImage}
    149      */
    150     @Deprecated
    151     public void selectFirstImage() {
    152         if (!data.isEmpty()) {
    153             setSelectedImageIndex(0);
    154         }
    155     }
    156 
    157     /**
    158147     * Get the last image in the layer
    159148     * @return The last image
     
    165154        }
    166155        return null;
    167     }
    168 
    169     /**
    170      * Select the last image of the sequence
    171      * @deprecated Use {@link #getLastImage()} with {@link #setSelectedImage}
    172      */
    173     @Deprecated
    174     public void selectLastImage() {
    175         setSelectedImageIndex(data.size() - 1);
    176156    }
    177157
     
    207187
    208188    /**
    209      * Select the next image of the sequence
    210      * @deprecated Use {@link #getNextImage()} in conjunction with {@link #setSelectedImage}
    211      */
    212     @Deprecated
    213     public void selectNextImage() {
    214         if (hasNextImage()) {
    215             setSelectedImageIndex(selectedImagesIndex.get(0) + 1);
    216         }
    217     }
    218 
    219     /**
    220189     * Get the image previous to the current image
    221190     * @return The previous image
     
    235204    public boolean hasPreviousImage() {
    236205        return (selectedImagesIndex.size() == 1 && selectedImagesIndex.get(0) - 1 > -1);
    237     }
    238 
    239     /**
    240      * Select the previous image of the sequence
    241      * @deprecated Use {@link #getPreviousImage()} with {@link #setSelectedImage}
    242      */
    243     @Deprecated
    244     public void selectPreviousImage() {
    245         if (data.isEmpty()) {
    246             return;
    247         }
    248         setSelectedImageIndex(Integer.max(0, selectedImagesIndex.get(0) - 1));
    249206    }
    250207
Note: See TracChangeset for help on using the changeset viewer.