Ignore:
Timestamp:
2025-02-14T10:42:11+01:00 (3 months ago)
Author:
stoecker
Message:

see #24104 - drop deprecated elements which aren't used anywhere

Location:
trunk/src/org/openstreetmap/josm/data
Files:
1 deleted
6 edited

Legend:

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

    r18592 r19320  
    174174     * is returned if that copy exists.
    175175     * @return the GPS time value
    176      * @deprecated Use {@link #getGpsInstant}
    177      */
    178     @Deprecated
    179     public Date getGpsTime() {
    180         if (tmp != null)
    181             return getDefensiveDate(tmp.gpsTime);
    182         return getDefensiveDate(gpsTime);
    183     }
    184 
    185     /**
    186      * Returns the GPS time value. The GPS time value from the temporary copy
    187      * is returned if that copy exists.
    188      * @return the GPS time value
    189176     */
    190177    @Override
     
    247234    public boolean hasExifTime() {
    248235        return exifTime != null;
    249     }
    250 
    251     /**
    252      * Returns the EXIF GPS time.
    253      * @return the EXIF GPS time
    254      * @since 6392
    255      * @deprecated Use {@link #getExifGpsInstant}
    256      */
    257     @Deprecated
    258     public Date getExifGpsTime() {
    259         return getDefensiveDate(exifGpsTime);
    260236    }
    261237
  • trunk/src/org/openstreetmap/josm/data/gpx/WayPoint.java

    r18014 r19320  
    134134     * Sets the {@link #PT_TIME} attribute to the specified time.
    135135     *
    136      * @param ts seconds from the epoch
    137      * @since 13210
    138      * @deprecated Use {@link #setInstant(Instant)}
    139      */
    140     @Deprecated
    141     public void setTime(long ts) {
    142         setInstant(Instant.ofEpochSecond(ts));
    143     }
    144 
    145     /**
    146      * Sets the {@link #PT_TIME} attribute to the specified time.
    147      *
    148136     * @param ts milliseconds from the epoch
    149137     * @since 14434
     
    195183    public boolean hasDate() {
    196184        return attr.get(PT_TIME) instanceof Instant;
    197     }
    198 
    199     /**
    200      * Returns the waypoint time Date object.
    201      *
    202      * @return a copy of the Date object associated with this waypoint
    203      * @since 14456
    204      * @deprecated Use {@link #getInstant()}
    205      */
    206     @Deprecated
    207     public Date getDate() {
    208         Instant instant = getInstant();
    209         return instant == null ? null : Date.from(instant);
    210185    }
    211186
  • trunk/src/org/openstreetmap/josm/data/oauth/OAuthVersion.java

    r18991 r19320  
    88 */
    99public enum OAuthVersion {
    10     /**
    11      * <a href="https://oauth.net/core/1.0a/">OAuth 1.0a</a>
    12      * @deprecated The OSM API server has deprecated and will remove OAuth 1.0a support in June 2024.
    13      */
    14     @Deprecated
    15     OAuth10a,
    1610    /** <a href="https://datatracker.ietf.org/doc/html/rfc6749">OAuth 2.0</a> */
    1711    OAuth20,
  • trunk/src/org/openstreetmap/josm/data/osm/OsmUtils.java

    r18918 r19320  
    3333     */
    3434    public static final String REVERSE_VALUE = "-1";
    35 
    36     /**
    37      * Discouraged synonym for {@link #TRUE_VALUE}
    38      * @deprecated since 18801, use {@link #TRUE_VALUE} instead.
    39      */
    40     @Deprecated
    41     public static final String trueval = TRUE_VALUE;
    42     /**
    43      * Discouraged synonym for {@link #FALSE_VALUE}
    44      * @deprecated since 18801, use {@link #FALSE_VALUE} instead.
    45      */
    46     @Deprecated
    47     public static final String falseval = FALSE_VALUE;
    48     /**
    49      * Discouraged synonym for {@link #REVERSE_VALUE}
    50      * @deprecated since 18801, use {@link #REVERSE_VALUE} instead.
    51      */
    52     @Deprecated
    53     public static final String reverseval = REVERSE_VALUE;
    5435
    5536    private OsmUtils() {
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java

    r17838 r19320  
    159159     * Returns the timestamp.
    160160     * @return the timestamp
    161      * @deprecated Use {@link #getInstant()}
    162      */
    163     @Deprecated
    164     public Date getTimestamp() {
    165         return Date.from(timestamp);
    166     }
    167 
    168     /**
    169      * Returns the timestamp.
    170      * @return the timestamp
    171161     */
    172162    public Instant getInstant() {
  • trunk/src/org/openstreetmap/josm/data/protobuf/ProtobufPacked.java

    r18695 r19320  
    1515    private final long[] numbers;
    1616    private int location;
    17 
    18     /**
    19      * Create a new ProtobufPacked object
    20      *
    21      * @param ignored A reusable ByteArrayOutputStream (no longer used)
    22      * @param bytes The packed bytes
    23      * @deprecated since we aren't using the output stream anymore
    24      */
    25     @Deprecated
    26     public ProtobufPacked(ByteArrayOutputStream ignored, byte[] bytes) {
    27         this(bytes);
    28     }
    2917
    3018    /**
Note: See TracChangeset for help on using the changeset viewer.