Ignore:
Timestamp:
2015-10-10T21:01:42+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - Unused private method should be removed
sonar - Unused protected methods should be removed
sonar - Sections of code should not be "commented out"
sonar - Empty statements should be removed
sonar - squid:S1172 - Unused method parameters should be removed
sonar - squid:S1481 - Unused local variables should be removed

File:
1 edited

Legend:

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

    r8513 r8855  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    6 import java.awt.Component;
    76import java.text.MessageFormat;
    87
     
    6564                    !Main.isOffline(OnlineResource.OSM_API)) {
    6665                try {
    67                     instance.initFromOAuth(Main.parent);
     66                    instance.initFromOAuth();
    6867                } catch (Exception e) {
    6968                    Main.error(e);
     
    211210     * Initializes the user identity manager from OAuth request of user details.
    212211     * This method should be called if {@code osm-server.auth-method} is set to {@code oauth}.
    213      * @param parent component relative to which the {@link PleaseWaitDialog} is displayed.
    214212     * @see #initFromPreferences
    215213     * @since 5434
    216214     */
    217     public void initFromOAuth(Component parent) {
     215    public void initFromOAuth() {
    218216        try {
    219217            UserInfo info = new OsmServerUserInfoReader().fetchUserInfo(NullProgressMonitor.INSTANCE);
     
    283281            if (OsmApi.isUsingOAuth()) {
    284282                try {
    285                     getInstance().initFromOAuth(Main.parent);
     283                    getInstance().initFromOAuth();
    286284                } catch (Exception e) {
    287285                    Main.error(e);
Note: See TracChangeset for help on using the changeset viewer.