Changeset 8906 in josm


Ignore:
Timestamp:
2015-10-19T14:00:49+02:00 (4 years ago)
Author:
Don-vip
Message:

remove deprecated stuff

Location:
trunk/src/org/openstreetmap/josm
Files:
4 edited

Legend:

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

    r8846 r8906  
    4242    public EastNorth add(EastNorth other) {
    4343        return new EastNorth(x+other.x, y+other.y);
    44     }
    45 
    46     /**
    47      * Subtracts the coordinates of this EastNorth instance from the other one.
    48      * <p>
    49      * This produces result = en2 - this.
    50      * @param en2 The instance to subtract this one from.
    51      * @return The new EastNorth position.
    52      * @deprecated use {@code subtract} on the other EastNorth instead
    53      */
    54     @Deprecated
    55     public EastNorth sub(EastNorth en2) {
    56         return en2.subtract(this);
    5744    }
    5845
  • trunk/src/org/openstreetmap/josm/gui/MainMenu.java

    r8870 r8906  
    598598
    599599    /**
    600      * @deprecated Use {@link #addMenu(String, String, int, int, String)} instead.
    601      */
    602     // Kept for compatibility with plugins
    603     @Deprecated
    604     public JMenu addMenu(String name, int mnemonicKey, int position, String relativeHelpTopic) {
    605         return addMenu(name, tr(name), mnemonicKey, position, relativeHelpTopic);
    606     }
    607 
    608     /**
    609600     * Creates a menu and adds it on the given position to the main menu.
    610601     *
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r8870 r8906  
    7575    }
    7676
    77     /**
    78      * Interface to notify listeners of the change of the system of measurement.
    79      * @since 6056
    80      * @deprecated use {@link org.openstreetmap.josm.data.SystemOfMeasurement.SoMChangeListener} instead.
    81      */
    82     @Deprecated
    83     public interface SoMChangeListener extends SystemOfMeasurement.SoMChangeListener {
    84     }
    85 
    8677    public transient Predicate<OsmPrimitive> isSelectablePredicate = new Predicate<OsmPrimitive>() {
    8778        @Override
     
    132123            l.zoomChanged();
    133124        }
    134     }
    135 
    136 
    137     /**
    138      * Removes a SoM change listener.
    139      *
    140      * @param listener the listener. Ignored if null or already absent
    141      * @since 6056
    142      * @deprecated use {@link SystemOfMeasurement#removeSoMChangeListener} instead.
    143      */
    144     @Deprecated
    145     public static void removeSoMChangeListener(NavigatableComponent.SoMChangeListener listener) {
    146         SystemOfMeasurement.removeSoMChangeListener(listener);
    147     }
    148 
    149     /**
    150      * Adds a SoM change listener
    151      *
    152      * @param listener the listener. Ignored if null or already registered.
    153      * @since 6056
    154      * @deprecated use {@link SystemOfMeasurement#addSoMChangeListener} instead.
    155      */
    156     @Deprecated
    157     public static void addSoMChangeListener(NavigatableComponent.SoMChangeListener listener) {
    158         SystemOfMeasurement.addSoMChangeListener(listener);
    159     }
    160 
    161     /**
    162      * Returns the current system of measurement.
    163      * @return The current system of measurement (metric system by default).
    164      * @since 3490
    165      * @deprecated use {@link SystemOfMeasurement#getSystemOfMeasurement} instead.
    166      */
    167     @Deprecated
    168     public static SystemOfMeasurement getSystemOfMeasurement() {
    169         return SystemOfMeasurement.getSystemOfMeasurement();
    170     }
    171 
    172     /**
    173      * Sets the current system of measurement.
    174      * @param somKey The system of measurement key. Must be defined in {@link SystemOfMeasurement#ALL_SYSTEMS}.
    175      * @throws IllegalArgumentException if {@code somKey} is not known
    176      * @since 6056
    177      * @deprecated use {@link SystemOfMeasurement#setSystemOfMeasurement} instead.
    178      */
    179     @Deprecated
    180     public static void setSystemOfMeasurement(String somKey) {
    181         SystemOfMeasurement.setSystemOfMeasurement(somKey);
    182125    }
    183126
  • trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java

    r8851 r8906  
    140140    }
    141141
    142     /**
    143      * Checks that WMS layer is a grabber-compatible one (HTML or WMS).
    144      * @throws IllegalStateException if imagery time is neither HTML nor WMS
    145      * @since 8068
    146      * @deprecated not implemented anymore
    147      */
    148     @Deprecated
    149     public void checkGrabberType() {
    150         // not implemented
    151     }
    152 
    153142    @Override
    154143    protected Class<? extends TileLoader> getTileLoaderClass() {
Note: See TracChangeset for help on using the changeset viewer.