Ignore:
Timestamp:
2016-03-13T21:36:47+01:00 (4 years ago)
Author:
Don-vip
Message:

remove unused code

Location:
trunk/src/org/openstreetmap/josm/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginException.java

    r8308 r9983  
    1313public class PluginException extends Exception {
    1414    public final transient PluginProxy plugin;
    15     public final String name;
    1615
    1716    public PluginException(PluginProxy plugin, String name, Throwable cause) {
    1817        super(tr("An error occurred in plugin {0}", name), cause);
    1918        this.plugin = plugin;
    20         this.name = name;
    2119    }
    2220
    23     public PluginException(String name, String message) {
     21    public PluginException(String message) {
    2422        super(message);
    2523        this.plugin = null;
    26         this.name = name;
    2724    }
    2825
     
    3027        super(tr("An error occurred in plugin {0}", name), cause);
    3128        this.plugin = null;
    32         this.name = name;
    3329    }
    3430}
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r8943 r9983  
    111111    public PluginInformation(File file, String name) throws PluginException {
    112112        if (!PluginHandler.isValidJar(file)) {
    113             throw new PluginException(name, tr("Invalid jar file ''{0}''", file));
     113            throw new PluginException(tr("Invalid jar file ''{0}''", file));
    114114        }
    115115        this.name = name;
     
    121121            Manifest manifest = jar.getManifest();
    122122            if (manifest == null)
    123                 throw new PluginException(name, tr("The plugin file ''{0}'' does not include a Manifest.", file.toString()));
     123                throw new PluginException(tr("The plugin file ''{0}'' does not include a Manifest.", file.toString()));
    124124            scanManifest(manifest, false);
    125125            libraries.add(0, Utils.fileToURL(file));
Note: See TracChangeset for help on using the changeset viewer.