Changeset 9855 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2016-02-23T08:53:05+01:00 (8 years ago)
Author:
Don-vip
Message:

see #12557 : remove unused code

Location:
trunk/src/org/openstreetmap/josm/data/validation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/routines/AbstractValidator.java

    r7937 r9855  
    99
    1010    private String errorMessage;
    11     private String fix;
    1211
    1312    /**
     
    3332        this.errorMessage = errorMessage;
    3433    }
    35 
    36     /**
    37      * Replies the fixed value, if any.
    38      * @return the fixed value or {@code null}
    39      */
    40     public final String getFix() {
    41         return fix;
    42     }
    43 
    44     /**
    45      * Sets the fixed value.
    46      * @param fix the fixed value, if any
    47      */
    48     protected final void setFix(String fix) {
    49         this.fix = fix;
    50     }
    5134}
  • trunk/src/org/openstreetmap/josm/data/validation/tests/InternetTags.java

    r8846 r9855  
    77import java.util.regex.Pattern;
    88
    9 import org.openstreetmap.josm.command.ChangePropertyCommand;
    109import org.openstreetmap.josm.data.osm.Node;
    1110import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1211import org.openstreetmap.josm.data.osm.Relation;
    1312import org.openstreetmap.josm.data.osm.Way;
    14 import org.openstreetmap.josm.data.validation.FixableTestError;
    1513import org.openstreetmap.josm.data.validation.Severity;
    1614import org.openstreetmap.josm.data.validation.Test;
     
    137135            }
    138136            String msg = tr("''{0}'': {1}", k, errMsg);
    139             String fix = validator.getFix();
    140             if (fix != null) {
    141                 error = new FixableTestError(this, Severity.WARNING, msg, code, p,
    142                         new ChangePropertyCommand(p, k, fix));
    143             } else {
    144                 error = new TestError(this, Severity.WARNING, msg, code, p);
    145             }
     137            error = new TestError(this, Severity.WARNING, msg, code, p);
    146138        }
    147139        return error;
Note: See TracChangeset for help on using the changeset viewer.