Changeset 5762 in josm


Ignore:
Timestamp:
2013-03-07T22:11:36+01:00 (11 years ago)
Author:
stoecker
Message:

remove some deprecated and unused stuff

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/SideButton.java

    r5471 r5762  
    8484    }
    8585
    86     // Used constructor with Action
    87     @Deprecated
    88     public SideButton(String imagename, String property, String tooltip, ActionListener actionListener)
    89     {
    90         super(makeIcon(imagename));
    91         doStyle();
    92         setActionCommand(imagename);
    93         addActionListener(actionListener);
    94         setToolTipText(tooltip);
    95     }
    96 
    97     // Used constructor with Action
    98     @Deprecated
    99     public SideButton(String name, String imagename, String property, String tooltip, Shortcut shortcut, ActionListener actionListener)
    100     {
    101         super(tr(name), makeIcon(imagename));
    102         if(shortcut != null)
    103         {
    104             shortcut.setMnemonic(this);
    105             if(tooltip != null) {
    106                 tooltip = Main.platform.makeTooltip(tooltip, shortcut);
    107             }
    108         }
    109         setup(name, property, tooltip, actionListener);
    110     }
    111 
    112     // Used constructor with Action
    113     @Deprecated
    114     public SideButton(String name, String imagename, String property, String tooltip, ActionListener actionListener)
    115     {
    116         super(tr(name), makeIcon(imagename));
    117         setup(name, property, tooltip, actionListener);
    118     }
    11986    private void setup(String name, String property, String tooltip, ActionListener actionListener)
    12087    {
     
    12592        putClientProperty("help", "Dialog/"+property+"/"+name);
    12693    }
     94
    12795    private void doStyle()
    12896    {
  • trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java

    r5684 r5762  
    7171    private Marker currentMarker;
    7272
    73     @Deprecated
    74     public MarkerLayer(GpxData indata, String name, File associatedFile, GpxLayer fromLayer, boolean addMouseHandlerInConstructor) {
    75         this(indata, name, associatedFile, fromLayer);
    76     }
    77 
    7873    public MarkerLayer(GpxData indata, String name, File associatedFile, GpxLayer fromLayer) {
    7974        super(name);
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r5543 r5762  
    729729    }
    730730
    731     @Deprecated
    732     public static ImageIcon overlay(Icon ground, String overlayImage, OverlayPosition pos) {
    733         return overlay(ground, ImageProvider.get(overlayImage), pos);
    734     }
    735 
    736731    /**
    737732     * Decorate one icon with an overlay icon.
Note: See TracChangeset for help on using the changeset viewer.